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
13cf0011
Commit
13cf0011
authored
Jan 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport previous stuff correctly
parent
c7fdd09e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+4
-4
No files found.
modules/codec/ffmpeg/encoder.c
View file @
13cf0011
...
@@ -791,9 +791,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -791,9 +791,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
if
(
1
)
if
(
1
)
#endif
#endif
{
{
frame
.
pts
=
p_pict
->
date
?
p_pict
->
date
:
AV_NOPTS_VALUE
;
frame
.
pts
=
p_pict
->
date
?
p_pict
->
date
:
(
int64_t
)
AV_NOPTS_VALUE
;
if
(
p_sys
->
b_hurry_up
&&
frame
.
pts
!=
AV_NOPTS_VALUE
)
if
(
p_sys
->
b_hurry_up
&&
frame
.
pts
!=
(
int64_t
)
AV_NOPTS_VALUE
)
{
{
mtime_t
current_date
=
mdate
();
mtime_t
current_date
=
mdate
();
...
@@ -839,7 +839,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -839,7 +839,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
frame
.
pts
=
AV_NOPTS_VALUE
;
frame
.
pts
=
AV_NOPTS_VALUE
;
}
}
if
(
frame
.
pts
!=
AV_NOPTS_VALUE
&&
frame
.
pts
!=
0
)
if
(
frame
.
pts
!=
(
int64_t
)
AV_NOPTS_VALUE
&&
frame
.
pts
!=
0
)
{
{
if
(
p_sys
->
i_last_pts
==
frame
.
pts
)
if
(
p_sys
->
i_last_pts
==
frame
.
pts
)
{
{
...
@@ -891,7 +891,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
...
@@ -891,7 +891,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* No delay -> output pts == input pts */
/* No delay -> output pts == input pts */
p_block
->
i_pts
=
p_block
->
i_dts
=
p_pict
->
date
;
p_block
->
i_pts
=
p_block
->
i_dts
=
p_pict
->
date
;
}
}
else
if
(
p_sys
->
p_context
->
coded_frame
->
pts
!=
AV_NOPTS_VALUE
&&
else
if
(
p_sys
->
p_context
->
coded_frame
->
pts
!=
(
signed
int
)
AV_NOPTS_VALUE
&&
p_sys
->
p_context
->
coded_frame
->
pts
!=
0
&&
p_sys
->
p_context
->
coded_frame
->
pts
!=
0
&&
p_sys
->
i_buggy_pts_detect
!=
p_sys
->
p_context
->
coded_frame
->
pts
)
p_sys
->
i_buggy_pts_detect
!=
p_sys
->
p_context
->
coded_frame
->
pts
)
{
{
...
...
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