From f7985f348f1eb3ec6a1670bc1accfe2c80b55148 Mon Sep 17 00:00:00 2001 From: Jean First Date: Tue, 15 May 2012 16:34:58 +0200 Subject: [PATCH] exr: fix header parsing the header in the sample provided for ticket #1306 is not parsed correctly and thus ffmpeg tries to decode the sample instead of abording the decoding. I tested it with two other exr samples I have - one float, one half float - and they still decode correctly. Signed-off-by: Jean First Signed-off-by: Michael Niedermayer --- libavcodec/exr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 3a93f2287c..0ef8db50f4 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -198,7 +198,7 @@ static int decode_frame(AVCodecContext *avctx, if (!variable_buffer_data_size) return -1; - channel_list_end = buf + variable_buffer_data_size + 4; + channel_list_end = buf + variable_buffer_data_size; while (channel_list_end - buf >= 19) { int current_bits_per_color_id = -1; int channel_index = -1;