[FFmpeg-cvslog] avcodec/c93: force dimensions to the correct value instead of depending on the demuxer to do so
Michael Niedermayer
git at videolan.org
Sun Sep 15 20:37:21 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 15 20:04:24 2013 +0200| [4f1a17b1a965764b6c3ec61f28ba0572a7e02faa] | committer: Michael Niedermayer
avcodec/c93: force dimensions to the correct value instead of depending on the demuxer to do so
Fixes Ticket2934
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f1a17b1a965764b6c3ec61f28ba0572a7e02faa
---
libavcodec/c93.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index c51f2fa..bb44f38 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -127,6 +127,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
uint8_t *out;
int stride, ret, i, x, y, b, bt = 0;
+ avcodec_set_dimensions(avctx, WIDTH, HEIGHT);
+
c93->currentpic ^= 1;
if ((ret = ff_reget_buffer(avctx, newpic)) < 0)
More information about the ffmpeg-cvslog
mailing list