diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-09-17 21:33:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-11-01 00:52:46 +0100 |
commit | bf4026fcbee8209b95d69d36cafb8fab63aeb442 (patch) | |
tree | d0a7160436aee152e04d6d999a4736a1c2bf15ed /libavcodec | |
parent | 3c3b437d794703e4172a08b82067612b45f3747e (diff) | |
download | ffmpeg-bf4026fcbee8209b95d69d36cafb8fab63aeb442.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>
Diffstat (limited to 'libavcodec')
-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 f91d2e3931..1ec656be36 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; |