[FFmpeg-devel] [PATCH] avcodec/tiff: Add support for recognizing DNG files

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Mar 17 10:55:30 EET 2019


Am So., 17. März 2019 um 08:46 Uhr schrieb <velocityra at gmail.com>:

> -    case TIFF_WHITE_LEVEL:
> +    case DNG_WHITE_LEVEL:

Why is this a good change?

> @@ -1389,6 +1405,11 @@ again:
>              return ret;
>      }
>
> +    if (s->dng_mode) {
> +        av_log(avctx, AV_LOG_ERROR, "DNG images are not supported\n");
> +        return AVERROR_PATCHWELCOME;
> +    }
> +

> @@ -1619,7 +1640,7 @@ static const AVClass tiff_decoder_class = {
>
>  AVCodec ff_tiff_decoder = {
>      .name           = "tiff",
> -    .long_name      = NULL_IF_CONFIG_SMALL("TIFF image"),
> +    .long_name      = NULL_IF_CONFIG_SMALL("TIFF / DNG image"),

I don't think above change (to error out for dng) justifies this
change.

Carl Eugen


More information about the ffmpeg-devel mailing list