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

2016-04-08 Thread Carl Eugen Hoyos
Martin Vignali gmail.com> writes: > -line = AV_RL32(src - 8); > +line = (int32_t)AV_RL32(src - 8); This change is ugly and should be unneeded. > +channel_buffer[0] += channelLineSize * line_to_skip; > +channel_buffer[1] += channelLineSize * line_to_skip; > +channel_b

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

2016-04-07 Thread Martin Vignali
Hello, In attach a patch who fix channel detection, if an exr have for example channel 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 patch. The patch set the target channel offset, only if no channel