avcodec/jpeg2000dec: Fix copy and paste error
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 May 2017 09:11:33 +0000 (11:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 23:05:27 +0000 (01:05 +0200)
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5782e0ba8cc30bb08a806cdeda1adfb89a0556b4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c

index b320c41..fca7740 100644 (file)
@@ -301,8 +301,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
     if (s->tile_offset_x < 0 || s->tile_offset_y < 0 ||
         s->image_offset_x < s->tile_offset_x ||
         s->image_offset_y < s->tile_offset_y) {
-        av_log(s->avctx, AV_LOG_ERROR, "Tile offsets are invalid\n",
-               s->ncomponents);
+        av_log(s->avctx, AV_LOG_ERROR, "Tile offsets are invalid\n");
         return AVERROR_INVALIDDATA;
     }