subreader.c: Simplify comparison

Patch by Clément Bœsch, ubitux gmail

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32416 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2010-09-30 09:08:37 +00:00 committed by Uoti Urpala
parent 2b01fc0678
commit ed065aa6a8
1 changed files with 1 additions and 2 deletions

View File

@ -1029,7 +1029,6 @@ static subtitle *sub_read_line_jacosub(stream_t* st, subtitle * current, int utf
static int sub_autodetect (stream_t* st, int *uses_time, int utf16) {
char line[LINE_LEN+1];
int i,j=0;
char p;
while (j < 100) {
j++;
@ -1073,7 +1072,7 @@ static int sub_autodetect (stream_t* st, int *uses_time, int utf16) {
{*uses_time=1;return SUB_PJS;}
if (sscanf (line, "FORMAT=%d", &i) == 1)
{*uses_time=0; return SUB_MPSUB;}
if (sscanf (line, "FORMAT=TIM%c", &p)==1 && p=='E')
if (!memcmp(line, "FORMAT=TIME", 11))
{*uses_time=1; return SUB_MPSUB;}
if (strstr (line, "-->>"))
{*uses_time=0; return SUB_AQTITLE;}