Mercurial > libavformat.hg
changeset 5490:38093ab40afe libavformat
Use av_match_ext() in place of the deprecated match_ext() function.
author | stefano |
---|---|
date | Fri, 01 Jan 2010 23:56:09 +0000 |
parents | 611a8e6209be |
children | a7aeae5a367b |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Fri Jan 01 23:50:10 2010 +0000 +++ b/utils.c Fri Jan 01 23:56:09 2010 +0000 @@ -222,7 +222,7 @@ 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 @@ 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; } }