[FFmpeg-cvslog] avcodec/zmbv: Update decomp_len in raw frames
Michael Niedermayer
git at videolan.org
Sun Nov 18 04:01:50 EET 2018
ffmpeg | branch: release/3.2 | Michael Niedermayer <michael at niedermayer.cc> | Mon Sep 17 21:33:59 2018 +0200| [5fe92631fc2015ced579da5fe4efa8fc52042911] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit 3d201b83cda03fd9e866acafee82d7ce88260e66)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5fe92631fc2015ced579da5fe4efa8fc52042911
---
libavcodec/zmbv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 5deef804bc..0ffeea502c 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;
More information about the ffmpeg-cvslog
mailing list