Commit b040ffc8 authored by Paul B Mahol's avatar Paul B Mahol

exr: display warning if multiple compression attributes are found

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 01f76a77
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment