[FFmpeg-cvslog] vaapi_encode_h265: Add missing error return

Mark Thompson git at videolan.org
Tue Sep 25 01:17:04 EEST 2018


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Mon Sep 24 23:02:10 2018 +0100| [74b4134d2f579c9fc99f970fe7bbe1a1497576c2] | committer: Mark Thompson

vaapi_encode_h265: Add missing error return

Fixes CID #1439657.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=74b4134d2f579c9fc99f970fe7bbe1a1497576c2
---

 libavcodec/vaapi_encode_h265.c | 1 +
 1 file changed, 1 insertion(+)

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;



More information about the ffmpeg-cvslog mailing list