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/vf_swaprect.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/vf_swaprect.c')
-rw-r--r-- | libavfilter/vf_swaprect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c index a0aa59d236..f96f897818 100644 --- a/libavfilter/vf_swaprect.c +++ b/libavfilter/vf_swaprect.c @@ -99,7 +99,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) var_values[VAR_DAR] = var_values[VAR_A] * var_values[VAR_SAR]; var_values[VAR_N] = inlink->frame_count_out; var_values[VAR_T] = in->pts == AV_NOPTS_VALUE ? NAN : in->pts * av_q2d(inlink->time_base); - var_values[VAR_POS] = av_frame_get_pkt_pos(in) == -1 ? NAN : av_frame_get_pkt_pos(in); + var_values[VAR_POS] = in->pkt_pos ? NAN : in->pkt_pos; ret = av_expr_parse_and_eval(&dw, s->w, var_names, &var_values[0], |