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
96536035
Commit
96536035
authored
Sep 23, 2009
by
Hugo Beauzee-Luyssen
Committed by
Laurent Aimar
Oct 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementing MP4 DEMUX_GET_FPS control query
Signed-off-by:
Laurent Aimar
<
fenrir@videolan.org
>
parent
ebf27e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+6
-2
No files found.
modules/demux/mp4/mp4.c
View file @
96536035
...
...
@@ -156,6 +156,7 @@ struct demux_sys_t
uint64_t
i_duration
;
/* movie duration */
unsigned
int
i_tracks
;
/* number of tracks */
mp4_track_t
*
track
;
/* array of track */
float
f_fps
;
/* number of frame per seconds */
/* */
MP4_Box_t
*
p_tref_chap
;
...
...
@@ -843,8 +844,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_SUCCESS
;
case
DEMUX_GET_FPS
:
msg_Warn
(
p_demux
,
"DEMUX_GET_FPS unimplemented !!"
);
return
VLC_EGENERIC
;
pf
=
(
double
*
)
va_arg
(
args
,
double
*
);
*
pf
=
(
double
)
p_sys
->
f_fps
;
return
VLC_SUCCESS
;
case
DEMUX_GET_META
:
{
...
...
@@ -1562,6 +1564,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
TrackGetESSampleRate
(
&
p_track
->
fmt
.
video
.
i_frame_rate
,
&
p_track
->
fmt
.
video
.
i_frame_rate_base
,
p_track
,
i_sample_description_index
,
i_chunk
);
p_demux
->
p_sys
->
f_fps
=
(
float
)
p_track
->
fmt
.
video
.
i_frame_rate
/
(
float
)
p_track
->
fmt
.
video
.
i_frame_rate_base
;
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