[FFmpeg-cvslog] In ffplay:get_video_frame(), use frame-> pkt_pts rather than reordered_opaque.
Stefano Sabatini
git
Mon Jan 31 18:48:16 CET 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sun Jan 16 18:39:34 2011 +0100| [2fa1d7b3be7b8a071591ab40e971264e7db9f07f] | committer: Michael Niedermayer
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 at mansr.com>
(cherry picked from commit 2855080447a226aba7e88e943fd8a8779d6daa98)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2fa1d7b3be7b8a071591ab40e971264e7db9f07f
---
ffplay.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index edc6097..1df3824 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list