[FFmpeg-devel] [PATCH 2/5] ffplay: Restore -drp 0/1 behavior after last commit
Alexander Strange
astrange
Mon Jul 26 22:16:07 CEST 2010
---
ffplay.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index e352392..b48611a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1512,7 +1512,13 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
pkt);
if (got_picture) {
- *pts = guess_correct_pts(&is->pts_ctx, frame->reordered_opaque, pkt->dts);
+ if (decoder_reorder_pts == -1)
+ *pts = guess_correct_pts(&is->pts_ctx, frame->reordered_opaque, pkt->dts);
+ else if (decoder_reorder_pts)
+ *pts = frame->reordered_opaque;
+ else
+ *pts = pkt->dts;
+
if (*pts == AV_NOPTS_VALUE)
*pts = 0;
}
--
1.7.1.1
More information about the ffmpeg-devel
mailing list