diff options
author | Zhong Li <zhongli_dev@126.com> | 2019-12-28 17:22:07 +0300 |
---|---|---|
committer | Zhong Li <zhongli_dev@126.com> | 2019-12-29 15:23:07 +0300 |
commit | 9fff5c40a781098480210f96daba88aba287f316 (patch) | |
tree | b7c691c962440fdbcd519af649303e30b3593257 /libavcodec/qsvdec.c | |
parent | 2ff687c17f3542b0e95c3b95fe6c844f3e809ed8 (diff) |
lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()
Signed-off-by: Zhong Li <zhongli_dev@126.com>
Diffstat (limited to 'libavcodec/qsvdec.c')
-rw-r--r-- | libavcodec/qsvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |