Mercurial > mplayer.hg
changeset 25703:986e8d8c1ae7
Get rid of quite useless inum variable
author | reimar |
---|---|
date | Sun, 13 Jan 2008 15:01:07 +0000 |
parents | c4275201a489 |
children | 1977ed7f06d4 |
files | stream/stream_cue.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_cue.c Sun Jan 13 13:37:19 2008 +0000 +++ b/stream/stream_cue.c Sun Jan 13 15:01:07 2008 +0000 @@ -98,7 +98,6 @@ /* presumes Line is preloaded with the "current" line of the file */ static int cue_getTrackinfo(char *Line, tTrack *track) { - char inum[3]; char min; char sec; char fps; @@ -132,9 +131,9 @@ if (strncmp(&Line[4], "INDEX ", 6)==0) { /* check stuff here so if the answer is false the else stuff below won't be executed */ - strncpy(inum, &Line[10], 2); inum[2] = '\0'; + Line[12] = 0; if ((already_set == 0) && - ((strcmp(inum, "00")==0) || (strcmp(inum, "01")==0))) + ((strcmp(&Line[10], "00")==0) || (strcmp(&Line[10], "01")==0))) { already_set = 1;