[FFmpeg-devel] libavcodec/exr : fix layer detection
Martin Vignali
m.vignali at jokyo-images.com
Sat Jun 4 17:56:19 CEST 2016
Hello,
In attach patch to fix layer detection inside exr file.
Only search a channel match, if the layer name also match. If no layer name
is set, doesn't change the previous behaviour.
Avoid to automatically mix channel from several layer. And when layer
doesn't have the same pixel type, avoid a decoding error.
This patch also change the log messages, when layer option is set, to know
which channel is detected, and which is ignored.
For example, if an exr file have the following channels
B
G
R
myLayer.A
myLayer.B
myLayer.G
myLayer.R
Before this patch, if we use -layer myLayer option
the following channels will be process :
B
G
R
myLayer.A
And if myLayer.A doesn't have the same pixel type than B, G, R, the
decoding failed.
After this patch :
myLayer.A
myLayer.B
myLayer.G
myLayer.R
The second patch, is just the ident.
Comment welcome
Martin Vignali
Jokyo Images
--
Martin Vignali
Jokyo Images
18 rue du Transvaal
69008 Lyon
06 99 89 33 30
m.vignali at jokyo-images.com
http://www.jokyo-images.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-exr-fix-layer-detection.-Only-test-a-chan.patch
Type: text/x-diff
Size: 2380 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160604/96a9cac8/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libavodec-exr-cosmetic-indent-the-if-layer_match-par.patch
Type: text/x-diff
Size: 2513 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160604/96a9cac8/attachment-0001.patch>
More information about the ffmpeg-devel
mailing list