summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2011-02-05 00:28:24 -0500
committerMichael Niedermayer <michaelni@gmx.at>2011-02-06 20:31:45 +0100
commitfd0ae17aafd7adb7619a02c6ec6835aa0ccbfea4 (patch)
tree08eec208e4540b01c4ef9edb88eed20230867b4f /ffplay.c
parent105ba7dc284e13ebaa87cbd1eb6f0650c939f0e7 (diff)
Adopt pkt_dts/pkt_pts in lavc clients
No behavior change; this makes DTS reliable with the next patch. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 6b474953975fd8ea64d1ed4d09c42b2d8e787c6f)
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 21c7205b24..dbb6268df1 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1576,11 +1576,11 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
if (got_picture) {
if (decoder_reorder_pts == -1) {
- *pts = guess_correct_pts(&is->pts_ctx, frame->pkt_pts, pkt->dts);
+ *pts = guess_correct_pts(&is->pts_ctx, frame->pkt_pts, frame->pkt_dts);
} else if (decoder_reorder_pts) {
*pts = frame->pkt_pts;
} else {
- *pts = pkt->dts;
+ *pts = frame->pkt_dts;
}
if (*pts == AV_NOPTS_VALUE) {