Message ID | 20180917193400.3276-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 3d201b83cda03fd9e866acafee82d7ce88260e66 |
Headers | show |
On Mon, Sep 17, 2018 at 09:33:59PM +0200, Michael Niedermayer wrote: > 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> > --- > libavcodec/zmbv.c | 1 + > 1 file changed, 1 insertion(+) will apply as the approved patch depends on this bugfix [...]
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 9e27a2caad..177993d0a6 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -525,6 +525,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac return AVERROR_INVALIDDATA; } memcpy(c->decomp_buf, buf, len); + c->decomp_len = len; } else { // ZLIB-compressed data c->zstream.total_in = c->zstream.total_out = 0; c->zstream.next_in = (uint8_t*)buf;
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> --- libavcodec/zmbv.c | 1 + 1 file changed, 1 insertion(+)