[FFmpeg-cvslog] riff_has_valid_tags: remove unused variable

Michael Niedermayer git at videolan.org
Sat Oct 20 23:02:16 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 20 22:34:01 2012 +0200| [e4ef2e073c2986d3e205fe02fd8d502e5d80c3cf] | committer: Michael Niedermayer

riff_has_valid_tags: remove unused variable

Fixes CID739471
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/riff.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/riff.c b/libavformat/riff.c
index 4cdefb9..1a5b414 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -636,10 +636,9 @@ void ff_riff_write_info_tag(AVIOContext *pb, const char *tag, const char *str)
 static int riff_has_valid_tags(AVFormatContext *s)
 {
     int i;
-    AVDictionaryEntry *t = NULL;
 
     for (i = 0; *ff_riff_tags[i]; i++) {
-        if ((t = av_dict_get(s->metadata, ff_riff_tags[i], NULL, AV_DICT_MATCH_CASE)))
+        if (av_dict_get(s->metadata, ff_riff_tags[i], NULL, AV_DICT_MATCH_CASE))
             return 1;
     }
 



More information about the ffmpeg-cvslog mailing list