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
52da2627
Commit
52da2627
authored
May 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mp4/mp4.c: fill-in frame rate info in es_format_t.
parent
f9882861
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+14
-1
No files found.
modules/demux/mp4/mp4.c
View file @
52da2627
...
...
@@ -1048,7 +1048,7 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
}
}
/* Use stts table to crate a sample number -> dts table.
/* Use stts table to cr
e
ate a sample number -> dts table.
* XXX: if we don't want to waste too much memory, we can't expand
* the box! so each chunk will contain an "extract" of this table
* for fast research (problem with raw stream where a sample is sometime
...
...
@@ -1190,6 +1190,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
{
MP4_Box_t
*
p_sample
;
MP4_Box_t
*
p_esds
;
MP4_Box_t
*
p_box
;
*
pp_es
=
NULL
;
...
...
@@ -1439,6 +1440,18 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_track
->
fmt
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_track
->
i_width
/
p_track
->
i_height
;
/* Frame rate */
p_track
->
fmt
.
video
.
i_frame_rate
=
p_track
->
i_timescale
;
p_track
->
fmt
.
video
.
i_frame_rate_base
=
1
;
if
(
p_track
->
fmt
.
video
.
i_frame_rate
&&
(
p_box
=
MP4_BoxGet
(
p_track
->
p_stbl
,
"stts"
))
&&
p_box
->
data
.
p_stts
->
i_entry_count
>=
1
)
{
p_track
->
fmt
.
video
.
i_frame_rate_base
=
p_box
->
data
.
p_stts
->
i_sample_delta
[
0
];
}
break
;
case
(
AUDIO_ES
):
...
...
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