[FFmpeg-cvslog] avfilter/swaprect: correct assignment of VAR_POS
Gyan Doshi
git at videolan.org
Wed Jan 15 10:58:25 EET 2020
ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Wed Jan 15 14:27:07 2020 +0530| [0777b197c57eebb4e2367932fa44021577ab5237] | committer: Gyan Doshi
avfilter/swaprect: correct assignment of VAR_POS
Revert regression introduced in 6af050d7d0
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0777b197c57eebb4e2367932fa44021577ab5237
---
libavfilter/vf_swaprect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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],
More information about the ffmpeg-cvslog
mailing list