summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-15 20:04:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-15 20:32:09 +0200
commit4f1a17b1a965764b6c3ec61f28ba0572a7e02faa (patch)
treeb25b8e2a0f466a6911a634b71dbca2656c2d60c2 /libavcodec
parent821a5938d100458f4d09d634041b05c860554ce0 (diff)
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@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/c93.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index c51f2fa9de..bb44f38791 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)