[FFmpeg-devel] [PATCH 3/3] exr: display warning if multiple compression attributes are found
Paul B Mahol
onemda at gmail.com
Thu Jul 19 20:22:17 CEST 2012
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/exr.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index cbd724f..b5c68de 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -403,7 +403,10 @@ static int decode_frame(AVCodecContext *avctx,
if (!variable_buffer_data_size)
return AVERROR_INVALIDDATA;
- s->compr = *buf;
+ if (s->compr == -1)
+ s->compr = *buf;
+ else
+ av_log(avctx, AV_LOG_WARNING, "Found more than one compression attribute\n");
buf += variable_buffer_data_size;
continue;
--
1.7.7
More information about the ffmpeg-devel
mailing list