From 3b086317277e3f3b61c0343930d8e2570b278bd6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 27 Oct 2013 10:02:26 +0100 Subject: h26[13]dec: stop using deprecated avcodec_set_dimensions --- libavcodec/h263dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/h263dec.c') diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 8060d8f284..c52fc00515 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -600,7 +600,9 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, /* H.263 could change picture size any time */ s->context_reinit = 0; - avcodec_set_dimensions(avctx, s->width, s->height); + ret = ff_set_dimensions(avctx, s->width, s->height); + if (ret < 0) + return ret; if ((ret = ff_MPV_common_frame_size_change(s))) return ret; -- cgit v1.2.3