[FFmpeg-cvslog] exr: make message about missing feature more useful

Paul B Mahol git at videolan.org
Thu Jun 7 01:44:15 CEST 2012


ffmpeg | branch: release/0.11 | Paul B Mahol <onemda at gmail.com> | Wed May 30 12:07:41 2012 +0000| [cdcd99eecc220079284a1477fabbbc8455e4a7df] | committer: Michael Niedermayer

exr: make message about missing feature more useful

Signed-off-by: Paul B Mahol <onemda at gmail.com>
(cherry picked from commit f5af8d5e76a5726cbeba905363293c4ac5750c8d)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdcd99eecc220079284a1477fabbbc8455e4a7df
---

 libavcodec/exr.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index a9dad21..a95423f 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;
             }
 



More information about the ffmpeg-cvslog mailing list