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
1f79a984
Commit
1f79a984
authored
Jun 11, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transcode: use 1000 as frame rate base and don't try to do any rounding
parent
f3b30afc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/stream_out/transcode/video.c
modules/stream_out/transcode/video.c
+3
-3
No files found.
modules/stream_out/transcode/video.c
View file @
1f79a984
...
...
@@ -34,8 +34,8 @@
#include <vlc_spu.h>
#include <vlc_modules.h>
#define ENC_FRAMERATE (25 * 100
1 + .5
)
#define ENC_FRAMERATE_BASE 100
1
#define ENC_FRAMERATE (25 * 100
0
)
#define ENC_FRAMERATE_BASE 100
0
struct
decoder_owner_sys_t
{
...
...
@@ -903,7 +903,7 @@ bool transcode_video_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
*
ENC_FRAMERATE_BASE
)
+
0
.
5
;
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate
=
(
p_sys
->
f_fps
*
ENC_FRAMERATE_BASE
);
id
->
p_encoder
->
fmt_out
.
video
.
i_frame_rate_base
=
ENC_FRAMERATE_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