find_subfiles: try to determine if a .sub file is text or vobsub
commit1a152eadaf1e2d8beac37d13ba22958b0946db8b
authorClément Bœsch <ubitux@gmail.com>
Thu, 3 Mar 2011 10:39:18 +0000 (3 11:39 +0100)
committerUoti Urpala <uau@mplayer2.org>
Wed, 20 Apr 2011 01:22:53 +0000 (20 04:22 +0300)
tree89b664721db2f57657883fae4a174b62ae01ab1f
parent1c6995d76cfb26a1a87dd4d23a6260e9cf7ecb62
find_subfiles: try to determine if a .sub file is text or vobsub

A file with the ambiguous extension .sub could be either VOBsub or
MicroDVD. If there's a corresponding .idx file it's certainly VOBsub,
so don't add it to the list of potential text subtitles. This will
avoid the annoying warning "SUB: Could not determine file format".
sub/find_subfiles.c