Skip to content
Snippets Groups Projects
Commit 234e0025 authored by Nicolas George's avatar Nicolas George
Browse files

ffplay: use AVFrame accessor.

parent ae344b2c
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment