Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
763f49fb
Commit
763f49fb
authored
May 28, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4: convert all \r to \n in subt.
parent
41683118
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+10
-0
No files found.
modules/demux/mp4/mp4.c
View file @
763f49fb
...
...
@@ -590,10 +590,17 @@ static int Demux( demux_t *p_demux )
if
(
i_size
+
2
<=
p_block
->
i_buffer
)
{
char
*
p
;
/* remove the length field, and append a '\0' */
memmove
(
&
p_block
->
p_buffer
[
0
],
&
p_block
->
p_buffer
[
2
],
i_size
);
p_block
->
p_buffer
[
i_size
]
=
'\0'
;
p_block
->
i_buffer
=
i_size
+
1
;
/* convert \r -> \n */
while
(
(
p
=
strchr
(
p_block
->
p_buffer
,
'\r'
)
)
)
{
*
p
=
'\n'
;
}
}
else
{
...
...
@@ -1108,6 +1115,9 @@ static int TrackCreateES ( demux_t *p_demux,
case
(
VLC_FOURCC
(
't'
,
'e'
,
'x'
,
't'
)
):
p_track
->
fmt
.
i_codec
=
VLC_FOURCC
(
's'
,
'u'
,
'b'
,
't'
);
/* FIXME: Not true, could be UTF-16 with a Byte Order Mark (0xfeff) */
/* FIXME UTF-8 doesn't work here ? */
/* p_track->fmt.subs.psz_encoding = strdup( "UTF-8" ); */
break
;
default:
...
...
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