aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-07-19 18:04:49 +0000
committerPaul B Mahol <onemda@gmail.com>2012-07-20 18:13:25 +0000
commitb040ffc84c5e35436590e0bcea6608a2ad31cf84 (patch)
tree036628775f46d5bfe3e5efdd752d9e21e12492cd
parent01f76a779c121bc6f27ea758e18b61c3063c249b (diff)
downloadffmpeg-b040ffc84c5e35436590e0bcea6608a2ad31cf84.tar.gz
exr: display warning if multiple compression attributes are found
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/exr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index cbd724f92b..b5c68de8d4 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;