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

Signed-off-by: Zhong Li <zhongli_dev@126.com>
pull/331/head
Zhong Li 5 years ago
parent 2ff687c17f
commit 9fff5c40a7
  1. 2
      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];

Loading…
Cancel
Save