[FFmpeg-cvslog] lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()
Zhong Li
git at videolan.org
Sun Dec 29 14:24:42 EET 2019
ffmpeg | branch: master | Zhong Li <zhongli_dev at 126.com> | Sat Dec 28 22:22:07 2019 +0800| [9fff5c40a781098480210f96daba88aba287f316] | committer: Zhong Li
lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()
Signed-off-by: Zhong Li <zhongli_dev at 126.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9fff5c40a781098480210f96daba88aba287f316
---
libavcodec/qsvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 0d34021b42..baaf1f205f 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -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];
More information about the ffmpeg-cvslog
mailing list