diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-06 02:51:05 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-06 02:53:47 +0400 |
commit | 266f6eefc603dd3c34be7de94eec5c9c293b80f1 (patch) | |
tree | 110e1d7aceb04e4375992409a4b43a30e1e8ecc6 /libavcodec/nuv.c | |
parent | 95e1dfee76c9ecdf70037b7e792897bc6e3d460b (diff) |
nuv: do not use data not initialized by LZO decompression.
This fixes visible corruption in the incomplete last frame
of the FATE sample.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r-- | libavcodec/nuv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 64956f916f..b10b8db248 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -187,7 +187,7 @@ retry: if (av_lzo1x_decode(c->decomp_buf, &outlen, buf, &inlen)) av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n"); buf = c->decomp_buf; - buf_size = c->decomp_size - AV_LZO_OUTPUT_PADDING; + buf_size = c->decomp_size - AV_LZO_OUTPUT_PADDING - outlen; } if (c->codec_frameheader) { int w, h, q, res; |