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/setpts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/setpts.c') diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c index 2ccca28e9a..4505498bf3 100644 --- a/libavfilter/setpts.c +++ b/libavfilter/setpts.c @@ -165,7 +165,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) } setpts->var_values[VAR_PTS ] = TS2D(frame->pts); setpts->var_values[VAR_T ] = TS2T(frame->pts, inlink->time_base); - setpts->var_values[VAR_POS ] = av_frame_get_pkt_pos(frame) == -1 ? NAN : av_frame_get_pkt_pos(frame); + setpts->var_values[VAR_POS ] = frame->pkt_pos == -1 ? NAN : frame->pkt_pos; setpts->var_values[VAR_RTCTIME ] = av_gettime(); if (inlink->type == AVMEDIA_TYPE_VIDEO) { -- cgit v1.2.3