[FFmpeg-devel] [PATCH] tiff: print warning in case of unknown / unsupported tag

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon May 9 22:27:55 CEST 2011


---
 libavcodec/tiff.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index cdf8ccd..3963998 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -468,6 +468,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_WARNING, "Unknown or unsupported tag %d/0x%0X\n", tag, tag);
     }
     return 0;
 }
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list