lavc/qsvdec: fix the error retrun code in ff_qsv_get_continuous_buffer()
Signed-off-by: Zhong Li <zhongli_dev@126.com>
This commit is contained in:
parent
2ff687c17f
commit
9fff5c40a7
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user