aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-13 15:01:07 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-13 15:01:07 +0000
commit8317c84904b4bc265ff5df9582919b97c527a781 (patch)
tree146a72fbcaaafa055fd5be0aaff59b08222b32a0 /stream
parentb58f5adbfd19095a5f618e0a359321040efd566f (diff)
Get rid of quite useless inum variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25731 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index cbb5e3e2c4..e03cd0e101 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -98,7 +98,6 @@ static int nTracks = 0;
/* 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 @@ static int cue_getTrackinfo(char *Line, tTrack *track)
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;