Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
56d4e0d5
Commit
56d4e0d5
authored
Mar 19, 2005
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transcode nit -- use nearbyint to get accurate conversion of user-supplied fps
parent
fb8f2f98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+2
-2
No files found.
modules/stream_out/transcode.c
View file @
56d4e0d5
...
...
@@ -27,6 +27,7 @@
*****************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
...
...
@@ -671,7 +672,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if
(
p_sys
->
f_fps
>
0
)
{
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate
=
p_sys
->
f_fps
*
1000
;
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate
=
nearbyint
(
p_sys
->
f_fps
*
1000
)
;
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate_base
=
1000
;
}
}
...
...
@@ -1363,7 +1364,6 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate
;
id
->
p_encoder
->
fmt_in
.
video
.
i_frame_rate_base
=
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate_base
;
date_Init
(
&
id
->
interpolated_pts
,
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate
,
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate_base
);
...
...
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