[FFmpeg-cvslog] avcodec/huffyuvdec: Fix fill value for truncated bitstreams
Michael Niedermayer
git at videolan.org
Mon Jun 16 01:32:13 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 16 01:06:50 2014 +0200| [20c7baf832f4c1165a1a0d4fe93f19a36ab3c764] | committer: Michael Niedermayer
avcodec/huffyuvdec: Fix fill value for truncated bitstreams
Found-by: Christophe Gisquet <christophe.gisquet at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20c7baf832f4c1165a1a0d4fe93f19a36ab3c764
---
libavcodec/huffyuvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/huffyuvdec.c b/libavcodec/huffyuvdec.c
index 7bb9b2d..3120c79 100644
--- a/libavcodec/huffyuvdec.c
+++ b/libavcodec/huffyuvdec.c
@@ -632,7 +632,7 @@ static void decode_422_bitstream(HYuvContext *s, int count)
}
for (; i < count; i++)
s->temp[0][2 * i ] = s->temp[1][i] =
- s->temp[0][2 * i + 1] = s->temp[2][i] = 128;
+ s->temp[0][2 * i + 1] = s->temp[2][i] = 0;
} else {
for (i = 0; i < count; i++) {
READ_2PIX(s->temp[0][2 * i ], s->temp[1][i], 1);
More information about the ffmpeg-cvslog
mailing list