diff options
author | Alexander Strange <astrange@ithinksw.com> | 2011-02-05 00:28:24 -0500 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-05 16:37:43 -0500 |
commit | 6b474953975fd8ea64d1ed4d09c42b2d8e787c6f (patch) | |
tree | 6f92d1e2e6d32563a084d3e3623cc3d2a947acb4 /ffplay.c | |
parent | 185a155e5701cfaa0281bf91a5a140d498aa0a7f (diff) | |
download | ffmpeg-6b474953975fd8ea64d1ed4d09c42b2d8e787c6f.tar.gz |
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |