git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae344b2
)
ffplay: use AVFrame accessor.
author
Nicolas George
<nicolas.george@normalesup.org>
Sun, 29 Apr 2012 09:17:16 +0000
(11:17 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Thu, 3 May 2012 16:47:16 +0000
(18:47 +0200)
ffplay.c
patch
|
blob
|
history
diff --git
a/ffplay.c
b/ffplay.c
index
4cc1a82
..
4015aaf
100644
(file)
--- 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 {