aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-09 01:04:39 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-12 16:00:52 +0000
commit620f88a0b94a651c6cc912b1fb32d308762d59b5 (patch)
treec80b8a3ac0dfd1f8b3498c1c8fd937000f18903a
parentd5fcf9426110df2d2f5b15ad0031185b3cfd3619 (diff)
downloadffmpeg-620f88a0b94a651c6cc912b1fb32d308762d59b5.tar.gz
vaapi_h264: Add missing return value check
-rw-r--r--libavcodec/vaapi_encode_h264.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 48cebd6edf..03605b05b2 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -210,7 +210,9 @@ static int vaapi_encode_h264_write_extra_header(AVCodecContext *avctx,
if (priv->sei_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;
}