mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/pnmdec: Fix 16bit decoding.
Regression since cdb5479c
Reported by irc user tTh from Mixart-Myrys
This commit is contained in:
parent
24424a6516
commit
193143486e
|
@ -143,7 +143,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
|
|||
v = (*s->bytestream++)&1;
|
||||
} else {
|
||||
/* read a sequence of digits */
|
||||
for (k = 0; k < 5 && c <= 9; k += 1) {
|
||||
for (k = 0; k < 6 && c <= 9; k += 1) {
|
||||
v = 10*v + c;
|
||||
c = (*s->bytestream++) - '0';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue