mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/huffyuvdec: Fix fill value for truncated bitstreams
Found-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f6577bd9cf
commit
20c7baf832
@ -632,7 +632,7 @@ static void decode_422_bitstream(HYuvContext *s, int count)
|
|||||||
}
|
}
|
||||||
for (; i < count; i++)
|
for (; i < count; i++)
|
||||||
s->temp[0][2 * i ] = s->temp[1][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 {
|
} else {
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
READ_2PIX(s->temp[0][2 * i ], s->temp[1][i], 1);
|
READ_2PIX(s->temp[0][2 * i ], s->temp[1][i], 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user