[FFmpeg-devel] libavcodec/exr : Fix channel detection

Martin Vignali martin.vignali at gmail.com
Thu Apr 7 13:05:01 CEST 2016


In attach a patch who fix channel detection, if an exr have for example
RGBZ. In that case, we need to use RGB channel not RGZ (actual case).

I let the identation modification inside the patch, because it's a small

The patch set the target channel offset, only if no channel have been
previously found.

./ScanLines/Blobbies.exr of the official sample :

before the patch return error : "RGB channels not of the same depth.\n");
Because the Z channel of this picture doesn't have the same pixel type than
RGB channel.
But in theory, this channel need to be ignore.

This patch still doesn't allow to decode it, but it's because there is
another trouble
(datawindow who exceed display window).

I will fix datawindow/display window trouble in another patch soon.

Comments welcome.

Jokyo Images
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-exr-fix-channel-detection.patch
Type: text/x-patch
Size: 1878 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160407/bae4aa67/attachment.bin>

More information about the ffmpeg-devel mailing list