1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-05 23:58:59 +02:00

kgv1dec: stop using deprecated avcodec_set_dimensions

This commit is contained in:
Anton Khirnov 2013-10-27 10:02:26 +01:00
parent d184cd1dac
commit d62b24a3f6

View File

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