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:
wm4 2015-10-08 19:56:50 +02:00
parent 280251656c
commit 252d5b319a
1 changed files with 4 additions and 0 deletions

View File

@ -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;