diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-12-13 21:10:15 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-12-14 11:49:58 +0300 |
commit | 193143486e8a7b1108147b1ea44134b5a80e5e17 (patch) | |
tree | 96dfa782d43668df0d594fdae4e661d62ce14670 /libavcodec | |
parent | 24424a6516f8adc4c73a2fe00fa106b0e49abafd (diff) |
lavc/pnmdec: Fix 16bit decoding.
Regression since cdb5479c
Reported by irc user tTh from Mixart-Myrys
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pnmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index 958c5e43b0..dbcaef3884 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -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'; } |