Fix a typo that broke writing (and reading) PAM files.
Reported and reviewed by Derek Buitenhuis.
This commit is contained in:
@@ -93,7 +93,9 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
|
||||
} else if (!strcmp(buf1, "MAXVAL")) {
|
||||
pnm_get(s, buf1, sizeof(buf1));
|
||||
maxval = strtol(buf1, NULL, 10);
|
||||
} else if (!strcmp(buf1, "TUPLETYPE")) {
|
||||
} else if (!strcmp(buf1, "TUPLTYPE") ||
|
||||
// FFmpeg used to write invalid files
|
||||
!strcmp(buf1, "TUPLETYPE")) {
|
||||
pnm_get(s, tuple_type, sizeof(tuple_type));
|
||||
} else if (!strcmp(buf1, "ENDHDR")) {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user