diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-10 20:22:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-10 22:05:38 +0200 |
commit | 056a4ae771b00645184c639fe9fd6b7217eb6d87 (patch) | |
tree | 6f0b8772225b4d3113eb3f0d25ebe1d09715bc22 /libavcodec/cfhd.c | |
parent | 9e9286e9edfbd070e5ef4891b2685522bedd72ce (diff) | |
download | ffmpeg-056a4ae771b00645184c639fe9fd6b7217eb6d87.tar.gz |
avcodec/cfhd: Set dimensions unconditionally
Fixes Ticket5215
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cfhd.c')
-rw-r--r-- | libavcodec/cfhd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 0e6abe04ba..74facd462d 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -438,6 +438,11 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, return ret; } } + ret = ff_set_dimensions(avctx, s->coded_width, s->coded_height); + if (ret < 0) + return ret; + frame.f->width = + frame.f->height = 0; if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0) return ret; |