diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-03 21:21:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-05 03:22:10 +0100 |
commit | 406e9647a08701d6b51f2e8abcb0166c74230917 (patch) | |
tree | 6ef55a32aa96810927e4ea71027997b1573ec200 /ffplay.c | |
parent | 738c603a22dc84f403ab5f23586383195efe1a70 (diff) | |
download | ffmpeg-406e9647a08701d6b51f2e8abcb0166c74230917.tar.gz |
ffplay: Avoid directly accessing AVFrame fields that differ between forks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |