mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
vaapi_h264: Add missing return value check
Fixes CID 1419829.
This commit is contained in:
parent
41272e112b
commit
03b1470088
@ -211,7 +211,9 @@ static int vaapi_encode_h264_write_extra_header(AVCodecContext *avctx,
|
|||||||
|
|
||||||
if (priv->sei_needed) {
|
if (priv->sei_needed) {
|
||||||
if (priv->aud_needed) {
|
if (priv->aud_needed) {
|
||||||
vaapi_encode_h264_add_nal(avctx, au, &priv->aud);
|
err = vaapi_encode_h264_add_nal(avctx, au, &priv->aud);
|
||||||
|
if (err < 0)
|
||||||
|
goto fail;
|
||||||
priv->aud_needed = 0;
|
priv->aud_needed = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user