Commit 4f1a17b1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/c93: force dimensions to the correct value instead of depending on the demuxer to do so

Fixes Ticket2934
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 821a5938
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment