vulkan_encode_h264/5: Fix uninitialized return value in write_extra_headers
This commit is contained in:
parent
2c3315b04c
commit
cc126afc91
2 changed files with 2 additions and 0 deletions
|
|
@ -1313,6 +1313,7 @@ static int write_extra_headers(AVCodecContext *avctx,
|
|||
if (err < 0)
|
||||
goto fail;
|
||||
} else {
|
||||
err = 0;
|
||||
*data_len = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1473,6 +1473,7 @@ static int write_extra_headers(AVCodecContext *avctx,
|
|||
if (err < 0)
|
||||
goto fail;
|
||||
} else {
|
||||
err = 0;
|
||||
*data_len = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue