[FFmpeg-cvslog] avcodec/lagarith: reenable buggy lag_decode_zero_run_line()
Michael Niedermayer
git at videolan.org
Mon Dec 30 14:13:40 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 30 13:47:34 2013 +0100| [6f1b2967712e25e4c39c506862982b3011e06532] | committer: Michael Niedermayer
avcodec/lagarith: reenable buggy lag_decode_zero_run_line()
This is to prevent regressions in case the old code was able to partly
decode frames (no way to say without a testcase)
Add a memset to prevent use of uninitialized memory until we have a
testcase and can test/fix it
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f1b2967712e25e4c39c506862982b3011e06532
---
libavcodec/lagarith.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 710558c..66346d0 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -370,7 +370,8 @@ static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
uint8_t *end = dst + (width - 2);
avpriv_request_sample(l->avctx, "zero_run_line");
- return AVERROR_PATCHWELCOME;
+
+ memset(dst, 0, width);
output_zeros:
if (l->zeros_rem) {
More information about the ffmpeg-cvslog
mailing list