Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
80cbbe27
Commit
80cbbe27
authored
Apr 22, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4: fix "mov playlist" handling. (raaah strncpy doesn't add '\0' :(
parent
6eae8331
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+7
-3
No files found.
modules/demux/mp4/mp4.c
View file @
80cbbe27
...
...
@@ -2,7 +2,7 @@
* mp4.c : MP4 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mp4.c,v 1.2
3 2003/04/22 11:38:25
fenrir Exp $
* $Id: mp4.c,v 1.2
4 2003/04/22 16:28:24
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -239,7 +239,8 @@ static int MP4Init( vlc_object_t * p_this )
msg_Dbg
(
p_input
,
"ignoring pseudo ref =`%s'"
,
psz_ref
);
continue
;
}
if
(
!
strncmp
(
psz_ref
,
"http://"
,
7
)
)
if
(
!
strncmp
(
psz_ref
,
"http://"
,
7
)
||
!
strncmp
(
psz_ref
,
"rtsp://"
,
7
)
)
{
msg_Dbg
(
p_input
,
"adding ref = `%s'"
,
psz_ref
);
playlist_Add
(
p_playlist
,
psz_ref
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
...
...
@@ -252,7 +253,10 @@ static int MP4Init( vlc_object_t * p_this )
if
(
end
)
{
strncpy
(
psz_absolute
,
p_input
->
psz_name
,
end
-
p_input
->
psz_name
+
1
);
int
i_len
=
end
+
1
-
p_input
->
psz_name
;
strncpy
(
psz_absolute
,
p_input
->
psz_name
,
i_len
);
psz_absolute
[
i_len
]
=
'\0'
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment