[FFmpeg-devel] [PATCH 3/3] ffplay: use AVFrame accessor.
Marton Balint
cus at passwd.hu
Sun Apr 29 23:40:37 CEST 2012
On Sun, 29 Apr 2012, Nicolas George wrote:
>
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> ffplay.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ffplay.c b/ffplay.c
> index 4489b34..e637d4f 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -1501,7 +1501,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);
I also support this.
Thanks,
Marton
More information about the ffmpeg-devel
mailing list