[FFmpeg-cvslog] jpeg2000dec: fix av_log()

Michael Niedermayer git at videolan.org
Thu Jun 6 21:53:27 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun  6 21:34:35 2013 +0200| [7c3a296b4f1f7fb663812533ef2c87b828a8e8aa] | committer: Michael Niedermayer

jpeg2000dec: fix av_log()

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

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

 libavcodec/jpeg2000dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 0f0259a..af542b9 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -326,7 +326,7 @@ static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c,
     tmp.mct     = bytestream2_get_byteu(&s->g); // multiple component transformation
 
     if (tmp.mct && s->ncomponents < 3) {
-        av_log(s->avctx, "MCT %d with too few components (%d)\n", tmp.mct, s->ncomponents);
+        av_log(s->avctx, AV_LOG_ERROR, "MCT %d with too few components (%d)\n", tmp.mct, s->ncomponents);
         return AVERROR_INVALIDDATA;
     }
 



More information about the ffmpeg-cvslog mailing list