1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-08 07:08:12 +00:00

demux_lavf: fix check for files lavf doesn't recognize

Commit 91ea30c585 ("demux_lavf: use lavf for all formats except those
listed") broke handling of files whose type libavformat couldn't
recognize at all. Fix the demux_lavf probe function to correctly
return failure in that case.
This commit is contained in:
Uoti Urpala 2010-11-17 21:47:56 +02:00
parent b82f82fe08
commit dcaad783b0

View File

@ -248,9 +248,10 @@ static int lavf_check_preferred_file(demuxer_t *demuxer){
for (p = preferred_internal; *p; p++)
if (matches_avinputformat_name(priv, *p))
return 0;
}
return DEMUXER_TYPE_LAVF_PREFERRED;
}
return 0;
}
static uint8_t char2int(char c) {
if (c >= '0' && c <= '9') return c - '0';