Commit 620f88a0 authored by Mark Thompson's avatar Mark Thompson

vaapi_h264: Add missing return value check

parent d5fcf942
...@@ -210,7 +210,9 @@ static int vaapi_encode_h264_write_extra_header(AVCodecContext *avctx, ...@@ -210,7 +210,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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment