提交 d62b24a3 编写于 作者: A Anton Khirnov

kgv1dec: stop using deprecated avcodec_set_dimensions

上级 d184cd1d
......@@ -61,12 +61,10 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
h = (buf[1] + 1) * 8;
buf += 2;
if ((res = av_image_check_size(w, h, 0, avctx)) < 0)
return res;
if (w != avctx->width || h != avctx->height) {
av_frame_unref(&c->prev);
avcodec_set_dimensions(avctx, w, h);
if ((res = ff_set_dimensions(avctx, w, h)) < 0)
return res;
}
maxcnt = w * h;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册