OSDN Git Service

tiff: print log in case of unknown / unsupported tag.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 9 May 2011 19:26:39 +0000 (21:26 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 5 Jun 2011 10:49:14 +0000 (12:49 +0200)
Helps debugging.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/tiff.c

index eaaeb84..08cd3b0 100644 (file)
@@ -478,6 +478,8 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
         if(s->compr == TIFF_G4)
             s->fax_opts = value;
         break;
+    default:
+        av_log(s->avctx, AV_LOG_DEBUG, "Unknown or unsupported tag %d/0X%0X\n", tag, tag);
     }
     return 0;
 }