decomp_len is used in raw frames, so it should not be left at the value from
whatever was decoded previously (which may be any other frame)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3d201b83cda03fd9e866acafee82d7ce88260e66)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -519,6 +519,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac |
519 | 519 |
return AVERROR_INVALIDDATA; |
520 | 520 |
} |
521 | 521 |
memcpy(c->decomp_buf, buf, len); |
522 |
+ c->decomp_len = len; |
|
522 | 523 |
} else { // ZLIB-compressed data |
523 | 524 |
c->zstream.total_in = c->zstream.total_out = 0; |
524 | 525 |
c->zstream.next_in = (uint8_t*)buf; |