mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
821a5938d1
commit
4f1a17b1a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user