[FFmpeg-cvslog] avcodec/cfhd: Set dimensions unconditionally
Michael Niedermayer
git at videolan.org
Sat Aug 13 16:30:01 EEST 2016
ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Fri Jun 10 20:22:02 2016 +0200| [5bf11223dd8eaee21d0230a285420abc2e248ecf] | committer: Michael Niedermayer
avcodec/cfhd: Set dimensions unconditionally
Fixes Ticket5215
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 056a4ae771b00645184c639fe9fd6b7217eb6d87)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bf11223dd8eaee21d0230a285420abc2e248ecf
---
libavcodec/cfhd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index d6d831b..3b2901d 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -425,6 +425,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;
More information about the ffmpeg-cvslog
mailing list