mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
probe: Bump the score for mime type matching
It should be more trustworthy than extension matching. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
d995f0a155
commit
883e98bc25
@ -196,7 +196,7 @@ AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened,
|
||||
score = AVPROBE_SCORE_EXTENSION;
|
||||
}
|
||||
if (av_match_name(lpd.mime_type, fmt1->mime_type))
|
||||
score = FFMAX(score, AVPROBE_SCORE_EXTENSION);
|
||||
score = FFMAX(score, AVPROBE_SCORE_MIME);
|
||||
if (score > *score_max) {
|
||||
*score_max = score;
|
||||
fmt = fmt1;
|
||||
|
Loading…
Reference in New Issue
Block a user