diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:57:18 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:40:30 +0700 |
commit | 6af050d7d0c3c73f3d62115152db82ebd2dc5d57 (patch) | |
tree | d1c7b6d4711dc095cab3f135f5c6433b4474364a /libavfilter/setpts.c | |
parent | 8103c595223613c08e44bcf56ae7098d3c31be8b (diff) | |
download | ffmpeg-6af050d7d0c3c73f3d62115152db82ebd2dc5d57.tar.gz |
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter/setpts.c')
-rw-r--r-- | libavfilter/setpts.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |