History

avfilter/swaprect: correct assignment of VAR_POS

Revert regression introduced in 6af050d7d0

Gyan Doshi committed 6 years ago

Commit 0777b191 parent 0dc08371 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_swaprect.c+1−1
@@ -99,7 +99,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 98 unmodified lines
99 var_values[VAR_DAR] = var_values[VAR_A] * var_values[VAR_SAR];99 var_values[VAR_DAR] = var_values[VAR_A] * var_values[VAR_SAR];
100 var_values[VAR_N] = inlink->frame_count_out;100 var_values[VAR_N] = inlink->frame_count_out;
101 var_values[VAR_T] = in->pts == AV_NOPTS_VALUE ? NAN : in->pts * av_q2d(inlink->time_base);101 var_values[VAR_T] = in->pts == AV_NOPTS_VALUE ? NAN : in->pts * av_q2d(inlink->time_base);
102 var_values[VAR_POS] = in->pkt_pos ? NAN : in->pkt_pos;102 var_values[VAR_POS] = in->pkt_pos == -1 ? NAN : in->pkt_pos;
103 103
104 ret = av_expr_parse_and_eval(&dw, s->w,104 ret = av_expr_parse_and_eval(&dw, s->w,
105 var_names, &var_values[0],105 var_names, &var_values[0],

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t