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

exr: make message about missing feature more useful

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent d24ef674
...@@ -305,9 +305,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -305,9 +305,9 @@ static int decode_frame(AVCodecContext *avctx,
if (!variable_buffer_data_size) if (!variable_buffer_data_size)
return -1; return -1;
switch (*buf) {
case EXR_RAW:
s->compr = *buf; s->compr = *buf;
switch (s->compr) {
case EXR_RAW:
break; break;
case EXR_RLE: case EXR_RLE:
case EXR_ZIP1: case EXR_ZIP1:
...@@ -315,7 +315,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -315,7 +315,7 @@ static int decode_frame(AVCodecContext *avctx,
case EXR_PIZ: case EXR_PIZ:
case EXR_B44: case EXR_B44:
default: default:
av_log(avctx, AV_LOG_ERROR, "This type of compression is not supported\n"); av_log(avctx, AV_LOG_ERROR, "Compression type %d is not supported\n", s->compr);
return -1; return -1;
} }
......
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