OSDN Git Service

exr: fix error message when pixel type is not set
authorPaul B Mahol <onemda@gmail.com>
Thu, 28 Feb 2013 17:37:40 +0000 (17:37 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 28 Feb 2013 18:38:15 +0000 (18:38 +0000)
This only happens with missing chlist attribute from header.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/exr.c

index 5d716a6..53c8f2b 100644 (file)
@@ -636,7 +636,7 @@ static int decode_frame(AVCodecContext *avctx,
         av_log_missing_feature(avctx, "32-bit unsigned int", 1);
         return AVERROR_PATCHWELCOME;
     default:
-        av_log(avctx, AV_LOG_ERROR, "Unknown pixel type : %d\n", s->pixel_type);
+        av_log(avctx, AV_LOG_ERROR, "Missing channel list\n");
         return AVERROR_INVALIDDATA;
     }