Commit 406e9647 authored by Michael Niedermayer's avatar Michael Niedermayer

ffplay: Avoid directly accessing AVFrame fields that differ between forks.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 738c603a
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment