[FFmpeg-devel] [PATCH v13 14/14] lavc/tiff: Default-initialize WhiteLevel DNG tag value

Michael Niedermayer michael at niedermayer.cc
Sun Aug 11 10:36:41 EEST 2019


On Sun, Aug 11, 2019 at 01:19:34AM +0300, Nick Renieris wrote:
> From: Nick Renieris <velocityra at gmail.com>
> 
> Initialized to `(2 ^ BitsPerSample) - 1` as per the DNG Specification.
> 
> Also make sure that `BlackLevel < WhiteLevel`.
> 
> This fixes decoding for "X7 CinemaDNG" samples here:
> - https://www.dji.com/gr/zenmuse-x7/info#downloads
> 
> Signed-off-by: Nick Renieris <velocityra at gmail.com>
> ---
>  libavcodec/tiff.c | 20 +++++++++++++++++---
>  1 file changed, 17 insertions(+), 3 deletions(-)

This breaks
./ffplay https://samples.ffmpeg.org/image-samples/flower-separated-contig-16.tif

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship: All citizens are under surveillance, all their steps and
actions recorded, for the politicians to enforce control.
Democracy: All politicians are under surveillance, all their steps and
actions recorded, for the citizens to enforce control.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190811/41ca33a2/attachment.sig>


More information about the ffmpeg-devel mailing list