summaryrefslogtreecommitdiff
path: root/libavfilter/vf_swaprect.c
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2020-01-15 14:09:07 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2020-01-15 14:27:51 +0530
commit0777b197c57eebb4e2367932fa44021577ab5237 (patch)
treee2257ed2baf85182945cecc350121b1bce054967 /libavfilter/vf_swaprect.c
parent0dc0837960eaaff27d2104ae6b89e29790b38d6a (diff)
avfilter/swaprect: correct assignment of VAR_POS
Revert regression introduced in 6af050d7d0
Diffstat (limited to 'libavfilter/vf_swaprect.c')
-rw-r--r--libavfilter/vf_swaprect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_swaprect.c b/libavfilter/vf_swaprect.c
index f1fab1e36d..cf9c298f2f 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] = in->pkt_pos ? NAN : in->pkt_pos;
+ var_values[VAR_POS] = in->pkt_pos == -1 ? NAN : in->pkt_pos;
ret = av_expr_parse_and_eval(&dw, s->w,
var_names, &var_values[0],