Commit 0777b197 authored by Gyan Doshi's avatar Gyan Doshi

avfilter/swaprect: correct assignment of VAR_POS

Revert regression introduced in 6af050d7
parent 0dc08379
...@@ -99,7 +99,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -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_DAR] = var_values[VAR_A] * var_values[VAR_SAR];
var_values[VAR_N] = inlink->frame_count_out; 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_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, ret = av_expr_parse_and_eval(&dw, s->w,
var_names, &var_values[0], var_names, &var_values[0],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment