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:
Zhong Li 2019-12-28 22:22:07 +08:00
parent 2ff687c17f
commit 9fff5c40a7

View File

@ -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];