aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-05-30 12:07:41 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-06-07 00:55:24 +0200
commitcdcd99eecc220079284a1477fabbbc8455e4a7df (patch)
tree73ba48b288153bd03479ba7633b14419179e52f2
parent9dc14fd3f029c2598e69ada1936345ae314f315f (diff)
downloadffmpeg-cdcd99eecc220079284a1477fabbbc8455e4a7df.tar.gz
exr: make message about missing feature more useful
Signed-off-by: Paul B Mahol <onemda@gmail.com> (cherry picked from commit f5af8d5e76a5726cbeba905363293c4ac5750c8d) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/exr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index a9dad21131..a95423f1df 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -305,9 +305,9 @@ static int decode_frame(AVCodecContext *avctx,
if (!variable_buffer_data_size)
return -1;
- switch (*buf) {
+ s->compr = *buf;
+ switch (s->compr) {
case EXR_RAW:
- s->compr = *buf;
break;
case EXR_RLE:
case EXR_ZIP1:
@@ -315,7 +315,7 @@ static int decode_frame(AVCodecContext *avctx,
case EXR_PIZ:
case EXR_B44:
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;
}