[FFmpeg-devel] [PATCH 3/3] ffplay: use AVFrame accessor.

Nicolas George nicolas.george at normalesup.org
Sun Apr 29 11:21:46 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 4489b34..e637d4f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1501,7 +1501,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
         int ret = 1;
 
         if (decoder_reorder_pts == -1) {
-            *pts = *(int64_t*)av_opt_ptr(avcodec_get_frame_class(), frame, "best_effort_timestamp");
+            *pts = av_frame_get_best_effort_timestamp(frame);
         } else if (decoder_reorder_pts) {
             *pts = frame->pkt_pts;
         } else {
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list