mirror of https://github.com/mpv-player/mpv
demux_subreader: participate in probing only on Libav
FFmpeg supports all formats the old subreader code does, and is better at it. On the other hand, subreader.c's probing is bad and can lead to false positives easily.
This commit is contained in:
parent
280251656c
commit
252d5b319a
|
@ -758,6 +758,10 @@ static int d_open_file(struct demuxer *demuxer, enum demux_check check)
|
|||
{
|
||||
if (check > DEMUX_CHECK_REQUEST)
|
||||
return -1;
|
||||
#if LIBAVUTIL_VERSION_MICRO >= 100
|
||||
if (check != DEMUX_CHECK_FORCE)
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
if (!demuxer->params || !demuxer->params->expect_subtitle)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue