Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
baceeede
Commit
baceeede
authored
Jan 25, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mp4.c: spec compliance fix.
parent
97c56636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
modules/mux/mp4.c
modules/mux/mp4.c
+3
-16
No files found.
modules/mux/mp4.c
View file @
baceeede
...
...
@@ -2,7 +2,7 @@
* mp4.c: mp4/mov muxer
*****************************************************************************
* Copyright (C) 2001, 2002, 2003 VideoLAN
* $Id: mp4.c,v 1.1
1 2004/01/24 11:56:16
gbazin Exp $
* $Id: mp4.c,v 1.1
2 2004/01/25 13:29:04
gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin at videolan dot org>
...
...
@@ -773,21 +773,8 @@ static bo_t *GetMoovBox( sout_mux_t *p_mux )
bo_add_32be
(
mvhd
,
0
);
// pre-defined
}
/* Find the 1st track id */
for
(
i_trak
=
0
;
i_trak
<
p_sys
->
i_nb_streams
;
i_trak
++
)
{
mp4_stream_t
*
p_stream
=
p_sys
->
pp_streams
[
i_trak
];
if
(
p_stream
->
p_fmt
->
i_cat
==
AUDIO_ES
||
p_stream
->
p_fmt
->
i_cat
==
VIDEO_ES
)
{
/* Found it */
bo_add_32be
(
mvhd
,
p_stream
->
i_track_id
);
// next-track-id
break
;
}
}
if
(
i_trak
==
p_sys
->
i_nb_streams
)
/* Just for sanity reasons */
bo_add_32be
(
mvhd
,
0xffffffff
);
/* Next available track id */
bo_add_32be
(
mvhd
,
p_sys
->
i_nb_streams
+
1
);
// next-track-id
box_fix
(
mvhd
);
box_gather
(
moov
,
mvhd
);
...
...
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