ffplay: Avoid directly accessing AVFrame fields that differ between forks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
738c603a22
commit
406e9647a0
2
ffplay.c
2
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user