sub: don't read packets if video and audio are disabled

Although disabling both video and audio is surely an obscure corner
case, it's allowed, and we don't want the demuxer to skip arbitrary
packets.

Basically, make the heuristic for checking interleaved files affect
external files only.
This commit is contained in:
wm4 2014-08-04 18:11:12 +02:00
parent 618361c697
commit 922b1d8504
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static bool is_interleaved(struct MPContext *mpctx, struct track *track)
(other->type == STREAM_VIDEO || other->type == STREAM_AUDIO))
return true;
}
return false;
return track->demuxer == mpctx->demuxer;
}
void reset_subtitles(struct MPContext *mpctx, int order)