Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 13:02:26 +0400
committerAnton Khirnov <anton@khirnov.net>2013-10-31 23:14:15 +0400
commitc6b8a7dbb4b624d0e46e05131d605266fd932aca (patch)
treef1307e94a40ba5f7c449807dc85562dc393eb781 /libavcodec/eamad.c
parentd6da372984c87fd6288c148c291065d6032ceda3 (diff)
eamad: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/eamad.c')
-rw-r--r--libavcodec/eamad.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 8d6aa626a1..5de28c72da 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -250,10 +250,9 @@ static int decode_frame(AVCodecContext *avctx,
buf += 16;
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);
+ if ((ret = ff_set_dimensions(avctx, width, height)) < 0)
+ return ret;
}
if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) {