[FFmpeg-devel] [PATCH 4/4] ffplay: Avoid directly accessing AVFrame fields that differ between forks.

Michael Niedermayer michaelni at gmx.at
Sat Dec 3 21:38:59 CET 2011


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 51753e2..c1fe937 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1486,7 +1486,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
         int ret = 1;
 
         if (decoder_reorder_pts == -1) {
-            *pts = frame->best_effort_timestamp;
+            *pts = *(int64_t*)av_opt_ptr(avcodec_get_frame_class(), frame, "best_effort_timestamp");
         } else if (decoder_reorder_pts) {
             *pts = frame->pkt_pts;
         } else {
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list