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
acd4ad06
Commit
acd4ad06
authored
Oct 29, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mp4.c: added a 3gp mode which writes a 3gp ftyp header.
parent
7ba99302
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/mux/mp4.c
modules/mux/mp4.c
+7
-2
No files found.
modules/mux/mp4.c
View file @
acd4ad06
...
...
@@ -60,6 +60,7 @@ vlc_module_begin();
set_capability
(
"sout mux"
,
5
);
add_shortcut
(
"mp4"
);
add_shortcut
(
"mov"
);
add_shortcut
(
"3gp"
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
@@ -128,6 +129,7 @@ typedef struct
struct
sout_mux_sys_t
{
vlc_bool_t
b_mov
;
vlc_bool_t
b_3gp
;
vlc_bool_t
b_64_ext
;
vlc_bool_t
b_fast_start
;
...
...
@@ -200,6 +202,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
pp_streams
=
NULL
;
p_sys
->
i_mdat_pos
=
0
;
p_sys
->
b_mov
=
p_mux
->
psz_mux
&&
!
strcmp
(
p_mux
->
psz_mux
,
"mov"
);
p_sys
->
b_3gp
=
p_mux
->
psz_mux
&&
!
strcmp
(
p_mux
->
psz_mux
,
"3gp"
);
p_sys
->
i_dts_start
=
0
;
...
...
@@ -207,9 +210,11 @@ static int Open( vlc_object_t *p_this )
{
/* Now add ftyp header */
box
=
box_new
(
"ftyp"
);
bo_add_fourcc
(
box
,
"isom"
);
if
(
p_sys
->
b_3gp
)
bo_add_fourcc
(
box
,
"3gp4"
);
else
bo_add_fourcc
(
box
,
"isom"
);
bo_add_32be
(
box
,
0
);
bo_add_fourcc
(
box
,
"mp41"
);
if
(
p_sys
->
b_3gp
)
bo_add_fourcc
(
box
,
"3gp4"
);
else
bo_add_fourcc
(
box
,
"mp41"
);
box_fix
(
box
);
p_sys
->
i_pos
+=
box
->
i_buffer
;
...
...
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