summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-29 11:17:16 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-05-03 18:47:16 +0200
commit234e00259ba036b53dc24f78f23c6afe8f108d74 (patch)
tree9eac7a01694f90088d68045fd877883aa79ac392
parentae344b2c5e2861af21f1a15f07bd931b1415eeff (diff)
downloadffmpeg-streaming-234e00259ba036b53dc24f78f23c6afe8f108d74.zip
ffmpeg-streaming-234e00259ba036b53dc24f78f23c6afe8f108d74.tar.gz
ffplay: use AVFrame accessor.
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 4cc1a82..4015aaf 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1500,7 +1500,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 {
OpenPOWER on IntegriCloud