Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
006c8499
Commit
006c8499
authored
Apr 21, 2007
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mpeg/m4v.c: new m4v-fps config option.
parent
a5ed885f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/demux/mpeg/m4v.c
modules/demux/mpeg/m4v.c
+12
-1
No files found.
modules/demux/mpeg/m4v.c
View file @
006c8499
...
...
@@ -36,6 +36,10 @@
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define FPS_TEXT N_("Frames per Second")
#define FPS_LONGTEXT N_("This is the desired frame rate when " \
"playing MPEG4 video elementary streams.")
vlc_module_begin
();
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_DEMUX
);
...
...
@@ -44,6 +48,7 @@ vlc_module_begin();
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"m4v"
);
add_shortcut
(
"mp4v"
);
add_float
(
"m4v-fps"
,
25
,
NULL
,
FPS_TEXT
,
FPS_LONGTEXT
,
VLC_FALSE
);
vlc_module_end
();
/*****************************************************************************
...
...
@@ -53,6 +58,7 @@ struct demux_sys_t
{
mtime_t
i_dts
;
es_out_id_t
*
p_es
;
float
f_fps
;
decoder_t
*
p_packetizer
;
};
...
...
@@ -70,6 +76,7 @@ static int Open( vlc_object_t * p_this )
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
uint8_t
*
p_peek
;
vlc_value_t
val
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
4
)
<
4
)
return
VLC_EGENERIC
;
...
...
@@ -100,6 +107,10 @@ static int Open( vlc_object_t * p_this )
/* We need to wait until we get p_extra (VOL header) from the packetizer
* before we create the output */
var_Create
(
p_demux
,
"m4v-fps"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_demux
,
"m4v-fps"
,
&
val
);
p_sys
->
f_fps
=
val
.
f_float
;
return
VLC_SUCCESS
;
}
...
...
@@ -165,7 +176,7 @@ static int Demux( demux_t *p_demux)
p_block_out
=
p_next
;
/* FIXME FIXME FIXME FIXME */
p_sys
->
i_dts
+=
(
mtime_t
)
1000000
/
25
;
p_sys
->
i_dts
+=
(
mtime_t
)
1000000
/
p_sys
->
f_fps
;
/* FIXME FIXME FIXME FIXME */
}
}
...
...
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