From 7bd014eaecef72fb680c7146351998708843bb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 11 Apr 2013 22:46:34 +0200 Subject: [PATCH] lavfi/aspect: fix d2q convert in init. Regression since git 71ef1ec7b. --- libavfilter/vf_aspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c index 4e7db56e9e..99457a76a1 100644 --- a/libavfilter/vf_aspect.c +++ b/libavfilter/vf_aspect.c @@ -52,7 +52,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) if (s->aspect_num > 0 && s->aspect_den > 0) { av_log(ctx, AV_LOG_WARNING, "num:den syntax is deprecated, please use num/den or named options instead\n"); - s->aspect = av_d2q(s->aspect_num / s->aspect_den, INT_MAX); + s->aspect = av_d2q(s->aspect_num / s->aspect_den, s->max); } return 0;