diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-01 15:49:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-01 15:49:58 +0100 |
commit | 98ca3fb9cf7fdfad38e731ffb029fa3f96b94581 (patch) | |
tree | f1cec553a2ad4be7135cc63adc061bc234f38c64 /libavcodec/truemotion1.c | |
parent | ffd100b111f4d494a9d70dae0efef0307eaf84d8 (diff) | |
parent | 757d5e8ef98ba2ab0dd0e85a46290c4f4a7e82be (diff) | |
download | ffmpeg-98ca3fb9cf7fdfad38e731ffb029fa3f96b94581.tar.gz |
Merge commit '757d5e8ef98ba2ab0dd0e85a46290c4f4a7e82be'
* commit '757d5e8ef98ba2ab0dd0e85a46290c4f4a7e82be':
vp8: stop using deprecated avcodec_set_dimensions
vp56: stop using deprecated avcodec_set_dimensions
vp3: stop using deprecated avcodec_set_dimensions
txd: stop using deprecated avcodec_set_dimensions
truemotion1: stop using deprecated avcodec_set_dimensions
Conflicts:
libavcodec/txd.c
libavcodec/vp56.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r-- | libavcodec/truemotion1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index d72cee8aea..b1de99b7ea 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -397,15 +397,16 @@ static int truemotion1_decode_header(TrueMotion1Context *s) new_pix_fmt = AV_PIX_FMT_RGB555; // RGB565 is supported as well s->w >>= width_shift; - if ((ret = av_image_check_size(s->w, s->h, 0, s->avctx)) < 0) - return ret; if (s->w != s->avctx->width || s->h != s->avctx->height || new_pix_fmt != s->avctx->pix_fmt) { av_frame_unref(&s->frame); s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 }; s->avctx->pix_fmt = new_pix_fmt; - avcodec_set_dimensions(s->avctx, s->w, s->h); + + if ((ret = ff_set_dimensions(s->avctx, s->w, s->h)) < 0) + return ret; + av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int)); if (!s->vert_pred) return AVERROR(ENOMEM); |