git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6577bd
)
avcodec/huffyuvdec: Fix fill value for truncated bitstreams
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Jun 2014 23:06:50 +0000
(
01:06
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Jun 2014 23:07:42 +0000
(
01:07
+0200)
Found-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/huffyuvdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/huffyuvdec.c
b/libavcodec/huffyuvdec.c
index
7bb9b2d
..
3120c79
100644
(file)
--- 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);