libavcodec/exr : fix channel size calculation for uint32 channel
authorMartin Vignali <martin.vignali@gmail.com>
Wed, 16 Nov 2016 22:15:27 +0000 (23:15 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 16 Nov 2016 22:45:44 +0000 (23:45 +0100)
commit52da3f6f70b1e95589a152aaf224811756fb9665
treeccbdf14f2269d6cca587b312e73430870981ce87
parentce3147eb198770b558acf6c05f33cb807a413707
libavcodec/exr : fix channel size calculation for uint32 channel

uint32 need 4 bytes not 1.
Fix decoding when there is half/float and uint32 channel.

This fixes crashes due to pointer corruption caused by invalid writes.

The problem was introduced in commit
03152e74dfdc7f438cb4a10402c4de744e807e22.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/exr.c