]> git.sesse.net Git - ffmpeg/blobdiff - avplay.c
hevc: move the SliceType enum to hevc.h
[ffmpeg] / avplay.c
index 0e128af553a1cdf2564243f1c10cbc642f36c4e5..47701320bcddff3bcdaf83d34db9850ec2664119 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -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;
         }