diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-09-17 21:33:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-03 12:06:41 +0200 |
commit | edae5259c05506a0923f709ce080144c4846ca28 (patch) | |
tree | 4b432600dce7ee3c992d2f2b3f7b4628f43c41b8 | |
parent | f2640f76489464f4a0016c729aa04d46d3638abb (diff) | |
download | ffmpeg-edae5259c05506a0923f709ce080144c4846ca28.tar.gz |
avcodec/zmbv: Update decomp_len in raw frames
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>
-rw-r--r-- | libavcodec/zmbv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 39a08db0eb..b12c3615b4 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -519,6 +519,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; |