On date Friday 2011-05-13 00:19:07 +0200, Stefano Sabatini encoded:
> On date Monday 2011-05-09 22:38:55 +0200, Michael Niedermayer encoded:
> > On Mon, May 09, 2011 at 10:27:55PM +0200, Stefano Sabatini wrote:
> > > ---
> > >  libavcodec/tiff.c |    2 ++
> > >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> > LGTM
> 
> Updated, added libav-devel to recipients.

> From ba93fc2d5a2580e5f4231cb855f104eb9515384f Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <[email protected]>
> Date: Mon, 9 May 2011 21:26:39 +0200
> Subject: [PATCH] tiff: print warning in case of unknown / unsupported tag

Updated again, ignore not-used tags, this avoids warnings with
libavcodec-encoded files.
-- 
FFmpeg = F**king & Fostering Muttering Power Eccentric Gnome
>From 1403079d8eb0272e954e97fe5798a74df22ccb52 Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <[email protected]>
Date: Mon, 9 May 2011 21:26:39 +0200
Subject: [PATCH] tiff: print warning in case of unknown / unsupported tag

Known but not used tags are ignored.
---
 libavcodec/tiff.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index fcbb1af..31225d2 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -472,6 +472,17 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
         if(s->compr == TIFF_G4)
             s->fax_opts = value;
         break;
+
+    /* known but ignored tags */
+    case TIFF_SUBFILE:
+    case TIFF_XRES:
+    case TIFF_YRES:
+    case TIFF_RES_UNIT:
+    case TIFF_SOFTWARE_NAME:
+        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

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to