Revision 28550804

View differences:

ffplay.c
1570 1570
        return 0;
1571 1571
    }
1572 1572

  
1573
    is->video_st->codec->reordered_opaque = pkt->pts;
1574 1573
    len1 = avcodec_decode_video2(is->video_st->codec,
1575 1574
                                 frame, &got_picture,
1576 1575
                                 pkt);
1577 1576

  
1578 1577
    if (got_picture) {
1579 1578
        if (decoder_reorder_pts == -1) {
1580
            *pts = guess_correct_pts(&is->pts_ctx, frame->reordered_opaque, pkt->dts);
1579
            *pts = guess_correct_pts(&is->pts_ctx, frame->pkt_pts, pkt->dts);
1581 1580
        } else if (decoder_reorder_pts) {
1582
            *pts = frame->reordered_opaque;
1581
            *pts = frame->pkt_pts;
1583 1582
        } else {
1584 1583
            *pts = pkt->dts;
1585 1584
        }

Also available in: Unified diff