mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-14 21:58:33 +03:00
exr: display warning if multiple compression attributes are found
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -403,7 +403,10 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
if (!variable_buffer_data_size)
|
if (!variable_buffer_data_size)
|
||||||
return AVERROR_INVALIDDATA;
|
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;
|
buf += variable_buffer_data_size;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user