diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-20 07:51:11 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-21 19:54:42 +0200 |
commit | beb62dac629603eb074a44c44389c230b5caac7c (patch) | |
tree | 19710471110c23126b14708b8ee0d998eeea9163 /avplay.c | |
parent | 32c8359093d1ff4f45ed19518b449b3ac3769d27 (diff) | |
download | ffmpeg-beb62dac629603eb074a44c44389c230b5caac7c.tar.gz |
Use AVFrame.pts instead of deprecated pkt_pts.
Diffstat (limited to 'avplay.c')
-rw-r--r-- | avplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1406,9 +1406,9 @@ static int get_video_frame(PlayerState *is, AVFrame *frame, int64_t *pts, AVPack if (got_picture) { if (decoder_reorder_pts == -1) { - *pts = guess_correct_pts(&is->pts_ctx, frame->pkt_pts, frame->pkt_dts); + *pts = guess_correct_pts(&is->pts_ctx, frame->pts, frame->pkt_dts); } else if (decoder_reorder_pts) { - *pts = frame->pkt_pts; + *pts = frame->pts; } else { *pts = frame->pkt_dts; } |