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
4b334c63
Commit
4b334c63
authored
Jan 12, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rawvideo: set framerate to 25 fps when it is not set in p_dec->fmt_out
parent
e9a77ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/codec/rawvideo.c
modules/codec/rawvideo.c
+4
-3
No files found.
modules/codec/rawvideo.c
View file @
4b334c63
...
...
@@ -153,16 +153,17 @@ static int OpenDecoder( vlc_object_t *p_this )
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
date_Init
(
&
p_sys
->
pts
,
p_dec
->
fmt_out
.
video
.
i_frame_rate
,
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
);
if
(
p_dec
->
fmt_out
.
video
.
i_frame_rate
==
0
||
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
==
0
)
{
msg_Warn
(
p_dec
,
"invalid frame rate %d/%d, using 25 fps instead"
,
p_dec
->
fmt_out
.
video
.
i_frame_rate
,
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
);
date_Init
(
&
p_sys
->
pts
,
25
,
1
);
p_dec
->
fmt_out
.
video
.
i_frame_rate
=
(
25
*
1000
)
+
0
.
5
;
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
=
1000
;
}
date_Init
(
&
p_sys
->
pts
,
p_dec
->
fmt_out
.
video
.
i_frame_rate
,
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
);
/* Find out p_vdec->i_raw_size */
vout_InitFormat
(
&
p_dec
->
fmt_out
.
video
,
p_dec
->
fmt_in
.
i_codec
,
...
...
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