]> git.sesse.net Git - ffmpeg/commitdiff
lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()
authorZhong Li <zhongli_dev@126.com>
Sat, 28 Dec 2019 14:22:07 +0000 (22:22 +0800)
committerZhong Li <zhongli_dev@126.com>
Sun, 29 Dec 2019 12:23:07 +0000 (20:23 +0800)
Signed-off-by: Zhong Li <zhongli_dev@126.com>
libavcodec/qsvdec.c

index 0d34021b427538915be15834e0adc305bf0800c8..baaf1f205f724f0d3a8cd21d78b4d494ff20861e 100644 (file)
@@ -74,7 +74,7 @@ static int ff_qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame *frame, A
         break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format.\n");
-        return AVERROR(ENOMEM);
+        return AVERROR(EINVAL);
     }
 
     frame->linesize[1] = frame->linesize[0];