vulkan_encode_h264/5: Fix uninitialized return value in write_extra_headers

This commit is contained in:
David Rosca 2024-11-14 22:38:08 +01:00 • committed by Lynne
parent 2c3315b04c
commit cc126afc91
2 changed files with 2 additions and 0 deletions

View file

@ -1313,6 +1313,7 @@ static int write_extra_headers(AVCodecContext *avctx,
if (err < 0)
goto fail;
} else {
err = 0;
*data_len = 0;
}

View file

@ -1473,6 +1473,7 @@ static int write_extra_headers(AVCodecContext *avctx,
if (err < 0)
goto fail;
} else {
err = 0;
*data_len = 0;
}