summaryrefslogtreecommitdiff
path: root/libavcodec/zmbv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-09-17 21:33:59 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-09-19 00:46:44 +0200
commit3d201b83cda03fd9e866acafee82d7ce88260e66 (patch)
tree9c9da000cdb974c6583eb69ec6d390185788dee5 /libavcodec/zmbv.c
parent2b646dac78d44ecc288ad0c21c050c1364c3e240 (diff)
downloadffmpeg-3d201b83cda03fd9e866acafee82d7ce88260e66.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>
Diffstat (limited to 'libavcodec/zmbv.c')
-rw-r--r--libavcodec/zmbv.c1
1 files changed, 1 insertions, 0 deletions
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;