[FFmpeg-devel] [PATCH] exr: make channel_offsets int instead of int8_t

Paul B Mahol onemda at gmail.com
Sun Jul 15 00:21:14 CEST 2012


Prior to this change max number of channels for float data which was
going to be correctly decoded was 32, which is rather small
considering that exr allows multiple channel layers.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/exr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 62ffdea..52e8916 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -52,7 +52,7 @@ typedef struct EXRContext {
     AVFrame picture;
     int compr;
     int bits_per_color_id;
-    int8_t channel_offsets[4]; // 0 = red, 1 = green, 2 = blue and 3 = alpha
+    int channel_offsets[4]; // 0 = red, 1 = green, 2 = blue and 3 = alpha
 
     uint8_t *uncompressed_data;
     int uncompressed_size;
-- 
1.7.7



More information about the ffmpeg-devel mailing list