aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-10-18 19:39:10 +0100
committerMark Thompson <sw@jkqxz.net>2017-10-18 20:05:11 +0100
commit03b1470088e6e4a11e5db0efd8c26d9ac8304d31 (patch)
tree9a969ab2e20b0dd3189719871f852ed58918eb37
parent41272e112b389e61b875ba2372a64a251f1da9fc (diff)
downloadffmpeg-03b1470088e6e4a11e5db0efd8c26d9ac8304d31.tar.gz
vaapi_h264: Add missing return value check
Fixes CID 1419829.
-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 46950772a9..9d9611f882 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -211,7 +211,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;
}