avcodec/c93: force dimensions to the correct value instead of depending on the demuxe...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Sep 2013 18:04:24 +0000 (20:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Sep 2013 18:32:09 +0000 (20:32 +0200)
Fixes Ticket2934

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/c93.c

index c51f2fa..bb44f38 100644 (file)
@@ -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)