changeset 5556:c35e1d2373c7 libavformat

Use av_match_ext() rather than the deprecated match_ext(), fix warnings.
author stefano
date Sun, 17 Jan 2010 15:57:51 +0000
parents 9ca204496cb5
children d09ba3567fa0
files movenc.c nsvdec.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Sun Jan 17 13:39:34 2010 +0000
+++ b/movenc.c	Sun Jan 17 15:57:51 2010 +0000
@@ -647,7 +647,7 @@
          tag == MKTAG('t','e','x','t'))))
         tag = ff_codec_get_tag(codec_ipod_tags, track->enc->codec_id);
 
-    if (!match_ext(s->filename, "m4a") && !match_ext(s->filename, "m4v"))
+    if (!av_match_ext(s->filename, "m4a") && !av_match_ext(s->filename, "m4v"))
         av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v "
                "Quicktime/Ipod might not play the file\n");
 
--- a/nsvdec.c	Sun Jan 17 13:39:34 2010 +0000
+++ b/nsvdec.c	Sun Jan 17 15:57:51 2010 +0000
@@ -764,7 +764,7 @@
             return AVPROBE_SCORE_MAX-20;
     }
     /* so we'll have more luck on extension... */
-    if (match_ext(p->filename, "nsv"))
+    if (av_match_ext(p->filename, "nsv"))
         return AVPROBE_SCORE_MAX/2;
     /* FIXME: add mime-type check */
     return 0;