Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
61c1d8e2
Commit
61c1d8e2
authored
Oct 07, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l pts vs. dts
Originally committed as revision 3567 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2db3c638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
ffplay.c
ffplay.c
+2
-12
No files found.
ffplay.c
View file @
61c1d8e2
...
@@ -845,16 +845,6 @@ static int output_picture2(VideoState *is, AVFrame *src_frame, double pts1)
...
@@ -845,16 +845,6 @@ static int output_picture2(VideoState *is, AVFrame *src_frame, double pts1)
pts
=
pts1
;
pts
=
pts1
;
/* if B frames are present, and if the current picture is a I
or P frame, we use the last pts */
if
(
is
->
video_st
->
codec
.
has_b_frames
&&
src_frame
->
pict_type
!=
FF_B_TYPE
)
{
/* use last pts */
pts
=
is
->
video_last_P_pts
;
/* get the pts for the next I or P frame if present */
is
->
video_last_P_pts
=
pts1
;
}
if
(
pts
!=
0
)
{
if
(
pts
!=
0
)
{
/* update video clock with pts, if present */
/* update video clock with pts, if present */
is
->
video_clock
=
pts
;
is
->
video_clock
=
pts
;
...
@@ -904,8 +894,8 @@ static int video_thread(void *arg)
...
@@ -904,8 +894,8 @@ static int video_thread(void *arg)
/* NOTE: ipts is the PTS of the _first_ picture beginning in
/* NOTE: ipts is the PTS of the _first_ picture beginning in
this packet, if any */
this packet, if any */
pts
=
0
;
pts
=
0
;
if
(
pkt
->
p
ts
!=
AV_NOPTS_VALUE
)
if
(
pkt
->
d
ts
!=
AV_NOPTS_VALUE
)
pts
=
(
double
)
pkt
->
p
ts
/
AV_TIME_BASE
;
pts
=
(
double
)
pkt
->
d
ts
/
AV_TIME_BASE
;
if
(
is
->
video_st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
)
{
if
(
is
->
video_st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
)
{
avpicture_fill
((
AVPicture
*
)
frame
,
pkt
->
data
,
avpicture_fill
((
AVPicture
*
)
frame
,
pkt
->
data
,
...
...
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