diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-16 18:39:34 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-30 19:02:19 +0000 |
commit | 2855080447a226aba7e88e943fd8a8779d6daa98 (patch) | |
tree | c2a2285fc71fa8b7a0cbf1481b9c04b16408544a /ffplay.c | |
parent | 13156f40e1f17ec1d0c57e6bf7a2850f673600c0 (diff) | |
download | ffmpeg-2855080447a226aba7e88e943fd8a8779d6daa98.tar.gz |
In ffplay:get_video_frame(), use frame->pkt_pts rather than reordered_opaque.
AVCodecContext.reordered_opaque is deprecated for this specific use.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1570,16 +1570,15 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke return 0; } - is->video_st->codec->reordered_opaque = pkt->pts; len1 = avcodec_decode_video2(is->video_st->codec, frame, &got_picture, pkt); if (got_picture) { if (decoder_reorder_pts == -1) { - *pts = guess_correct_pts(&is->pts_ctx, frame->reordered_opaque, pkt->dts); + *pts = guess_correct_pts(&is->pts_ctx, frame->pkt_pts, pkt->dts); } else if (decoder_reorder_pts) { - *pts = frame->reordered_opaque; + *pts = frame->pkt_pts; } else { *pts = pkt->dts; } |