Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
157f8929
Commit
157f8929
authored
Oct 28, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: set bitrate
parent
7a362078
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/demux/mp4/essetup.c
modules/demux/mp4/essetup.c
+18
-0
No files found.
modules/demux/mp4/essetup.c
View file @
157f8929
...
...
@@ -30,6 +30,18 @@
#include <vlc_aout.h>
#include <assert.h>
static
void
SetupGlobalExtensions
(
mp4_track_t
*
p_track
,
MP4_Box_t
*
p_sample
)
{
if
(
!
p_track
->
fmt
.
i_bitrate
)
{
const
MP4_Box_t
*
p_btrt
=
MP4_BoxGet
(
p_sample
,
"btrt"
);
if
(
p_btrt
&&
BOXDATA
(
p_btrt
)
)
{
p_track
->
fmt
.
i_bitrate
=
BOXDATA
(
p_btrt
)
->
i_avg_bitrate
;
}
}
}
static
void
SetupESDS
(
demux_t
*
p_demux
,
mp4_track_t
*
p_track
,
const
MP4_descriptor_decoder_config_t
*
p_decconfig
)
{
/* First update information based on i_objectTypeIndication */
...
...
@@ -229,6 +241,8 @@ int SetupVideoES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
p_track
->
i_block_flags
=
BOXDATA
(
p_fiel
)
->
i_flags
;
}
SetupGlobalExtensions
(
p_track
,
p_sample
);
/* now see if esds is present and if so create a data packet
with decoder_specific_info */
MP4_Box_t
*
p_esds
=
MP4_BoxGet
(
p_sample
,
"esds"
);
...
...
@@ -689,6 +703,8 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
}
SetupGlobalExtensions
(
p_track
,
p_sample
);
/* now see if esds is present and if so create a data packet
with decoder_specific_info */
MP4_Box_t
*
p_esds
=
MP4_BoxGet
(
p_sample
,
"esds"
);
...
...
@@ -837,6 +853,8 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
break
;
}
SetupGlobalExtensions
(
p_track
,
p_sample
);
/* now see if esds is present and if so create a data packet
with decoder_specific_info */
MP4_Box_t
*
p_esds
=
MP4_BoxGet
(
p_sample
,
"esds"
);
...
...
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