mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
vulkan_encode_h264/5: Fix uninitialized return value in write_extra_headers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user