diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-01 23:56:09 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-01 23:56:09 +0000 |
commit | aa13b573b462e4ce88814f28fd9d2659ddc04eb7 (patch) | |
tree | 3d204ba93ff2e9a5319b1831915848854b23a794 /libavformat | |
parent | 79c2f2d34e66e69daeeebdf04400d6d476289215 (diff) | |
download | ffmpeg-aa13b573b462e4ce88814f28fd9d2659ddc04eb7.tar.gz |
Use av_match_ext() in place of the deprecated match_ext() function.
Originally committed as revision 21000 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 316986cfde..fe85790504 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -222,7 +222,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type)) score += 10; if (filename && fmt->extensions && - match_ext(filename, fmt->extensions)) { + av_match_ext(filename, fmt->extensions)) { score += 5; } if (score > score_max) { @@ -325,7 +325,7 @@ static AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int if (fmt1->read_probe) { score = fmt1->read_probe(pd); } else if (fmt1->extensions) { - if (match_ext(pd->filename, fmt1->extensions)) { + if (av_match_ext(pd->filename, fmt1->extensions)) { score = 50; } } |