eamad: stop using deprecated avcodec_set_dimensions

pull/45/head
Anton Khirnov 11 years ago
parent d6da372984
commit c6b8a7dbb4
  1. 5
      libavcodec/eamad.c

@ -250,10 +250,9 @@ static int decode_frame(AVCodecContext *avctx,
buf += 16; buf += 16;
if (avctx->width != width || avctx->height != height) { if (avctx->width != width || avctx->height != height) {
if (av_image_check_size(width, height, 0, avctx) < 0)
return -1;
avcodec_set_dimensions(avctx, width, height);
av_frame_unref(&s->last_frame); av_frame_unref(&s->last_frame);
if ((ret = ff_set_dimensions(avctx, width, height)) < 0)
return ret;
} }
if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) { if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) {

Loading…
Cancel
Save