summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode_h265.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-09-24 23:02:10 +0100
committerMark Thompson <sw@jkqxz.net>2018-09-24 23:09:45 +0100
commit74b4134d2f579c9fc99f970fe7bbe1a1497576c2 (patch)
tree3f72b686823744c167eebee804665d4e8424d9c6 /libavcodec/vaapi_encode_h265.c
parent1215fbad96da6dc9f81cf335332fc7ebafd0c557 (diff)
downloadffmpeg-74b4134d2f579c9fc99f970fe7bbe1a1497576c2.tar.gz
vaapi_encode_h265: Add missing error return
Fixes CID #1439657.
Diffstat (limited to 'libavcodec/vaapi_encode_h265.c')
-rw-r--r--libavcodec/vaapi_encode_h265.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c
index 1ada973dd3..10312fbd60 100644
--- a/libavcodec/vaapi_encode_h265.c
+++ b/libavcodec/vaapi_encode_h265.c
@@ -293,6 +293,7 @@ static int vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
} else {
av_log(avctx, AV_LOG_ERROR, "Chroma format of input pixel format "
"%s is not supported.\n", desc->name);
+ return AVERROR(EINVAL);
}
}
bit_depth = desc->comp[0].depth;