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>
This commit is contained in:
Michael Niedermayer 2013-09-15 20:04:24 +02:00
parent 821a5938d1
commit 4f1a17b1a9
1 changed files with 2 additions and 0 deletions

View 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)