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
0c56024b
Commit
0c56024b
authored
Jan 05, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264.c: remote pts/dts scaling as it isn't needed nowadays
parent
b7003c73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
modules/codec/x264.c
modules/codec/x264.c
+2
-8
No files found.
modules/codec/x264.c
View file @
0c56024b
...
...
@@ -1331,12 +1331,6 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
#endif
if
(
likely
(
p_pict
)
)
{
pic
.
i_pts
=
p_pict
->
date
;
/* scale pts starting from 0 as libx264 seems to return dts values
assume that
*/
if
(
unlikely
(
p_sys
->
i_initial_delay
==
0
)
)
p_sys
->
i_initial_delay
=
p_pict
->
date
;
pic
.
i_pts
-=
p_sys
->
i_initial_delay
;
pic
.
img
.
i_csp
=
p_sys
->
i_colorspace
;
pic
.
img
.
i_plane
=
p_pict
->
i_planes
;
for
(
i
=
0
;
i
<
p_pict
->
i_planes
;
i
++
)
...
...
@@ -1390,8 +1384,8 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
p_enc
->
fmt_in
.
video
.
i_frame_rate
;
/* scale pts-values back*/
p_block
->
i_pts
=
pic
.
i_pts
+
p_sys
->
i_initial_delay
;
p_block
->
i_dts
=
pic
.
i_dts
+
p_sys
->
i_initial_delay
;
p_block
->
i_pts
=
pic
.
i_pts
;
p_block
->
i_dts
=
pic
.
i_dts
;
return
p_block
;
}
...
...
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