Commit 9fff5c40 authored by Zhong Li's avatar Zhong Li

lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()

Signed-off-by: 's avatarZhong Li <zhongli_dev@126.com>
parent 2ff687c1
...@@ -74,7 +74,7 @@ static int ff_qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame *frame, A ...@@ -74,7 +74,7 @@ static int ff_qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame *frame, A
break; break;
default: default:
av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format.\n"); av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format.\n");
return AVERROR(ENOMEM); return AVERROR(EINVAL);
} }
frame->linesize[1] = frame->linesize[0]; frame->linesize[1] = frame->linesize[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment