Revert regression introduced in 6af050d7d0
Unified · Split
| @@ -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], |