From 6af050d7d0c3c73f3d62115152db82ebd2dc5d57 Mon Sep 17 00:00:00 2001 From: Muhammad Faiz Date: Sat, 22 Apr 2017 15:57:18 +0700 Subject: avfilter: do not use AVFrame accessor Reviewed-by: wm4 Signed-off-by: Muhammad Faiz --- libavfilter/f_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/f_loop.c') diff --git a/libavfilter/f_loop.c b/libavfilter/f_loop.c index 5a3280772e..255fe643da 100644 --- a/libavfilter/f_loop.c +++ b/libavfilter/f_loop.c @@ -275,7 +275,7 @@ static int push_frame(AVFilterContext *ctx) if (!out) return AVERROR(ENOMEM); out->pts += s->duration - s->start_pts; - pts = out->pts + av_frame_get_pkt_duration(out); + pts = out->pts + out->pkt_duration; ret = ff_filter_frame(outlink, out); s->current_frame++; @@ -307,7 +307,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) return AVERROR(ENOMEM); } s->nb_frames++; - s->duration = frame->pts + av_frame_get_pkt_duration(frame); + s->duration = frame->pts + frame->pkt_duration; ret = ff_filter_frame(outlink, frame); } else { av_frame_free(&frame); -- cgit v1.2.3