1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge commit '78780c8bf6246a1cf1cd0c9096b49dc082a6a8e5'

* commit '78780c8bf6246a1cf1cd0c9096b49dc082a6a8e5':
  ansi: stop using deprecated avcodec_set_dimensions

Conflicts:
	libavcodec/ansi.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-11-01 13:28:33 +01:00
commit 5ef0c00580

View File

@ -91,7 +91,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
s->bg = DEFAULT_BG_COLOR;
if (!avctx->width || !avctx->height)
avcodec_set_dimensions(avctx, 80<<3, 25<<4);
ff_set_dimensions(avctx, 80 << 3, 25 << 4);
return 0;
}
@ -247,7 +247,9 @@ static int execute_code(AVCodecContext * avctx, int c)
s->y = av_clip(s->y, 0, height - s->font_height);
if (width != avctx->width || height != avctx->height) {
av_frame_unref(s->frame);
avcodec_set_dimensions(avctx, width, height);
ret = ff_set_dimensions(avctx, width, height);
if (ret < 0)
return ret;
if ((ret = ff_get_buffer(avctx, s->frame,
AV_GET_BUFFER_FLAG_REF)) < 0)
return ret;