summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-07 00:43:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-07 00:43:59 +0000
commit61c1d8e2b64f756ed4ee731ca18dc0ac426a21ef (patch)
treee8f8a01c2cee2672c229cf559741d09a4b94c871 /ffplay.c
parent2db3c638a753b74bbb67fe3e2f639620a91fb667 (diff)
10l pts vs. dts
Originally committed as revision 3567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/ffplay.c b/ffplay.c
index b89e40570a..661bc2c401 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -845,16 +845,6 @@ static int output_picture2(VideoState *is, AVFrame *src_frame, double 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) {
/* update video clock with pts, if present */
is->video_clock = pts;
@@ -904,8 +894,8 @@ static int video_thread(void *arg)
/* NOTE: ipts is the PTS of the _first_ picture beginning in
this packet, if any */
pts = 0;
- if (pkt->pts != AV_NOPTS_VALUE)
- pts = (double)pkt->pts / AV_TIME_BASE;
+ if (pkt->dts != AV_NOPTS_VALUE)
+ pts = (double)pkt->dts / AV_TIME_BASE;
if (is->video_st->codec.codec_id == CODEC_ID_RAWVIDEO) {
avpicture_fill((AVPicture *)frame, pkt->data,