Janne Grunau <[email protected]> writes:

> diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
> index 54b55cf..b5e4d93 100644
> --- a/libavcodec/pnm.c
> +++ b/libavcodec/pnm.c
> @@ -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")) {

Weird indentation and weird placement of comment.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to