Browse Source

exr: display warning if multiple compression attributes are found

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.0
Paul B Mahol 13 years ago
parent
commit
b040ffc84c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavcodec/exr.c

+ 4
- 1
libavcodec/exr.c View File

@@ -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;


Loading…
Cancel
Save