summaryrefslogtreecommitdiff
path: root/libavfilter/vf_aspect.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-11 22:46:34 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-11 22:46:47 +0200
commit7bd014eaecef72fb680c7146351998708843bb27 (patch)
tree72f0dc411b4971b803ebd6cc2b4fe4cd13c33ce9 /libavfilter/vf_aspect.c
parent97104aa011da3a22bc445bdd0630a03c9fd5760b (diff)
lavfi/aspect: fix d2q convert in init.
Regression since git 71ef1ec7b.
Diffstat (limited to 'libavfilter/vf_aspect.c')
-rw-r--r--libavfilter/vf_aspect.c2
1 files changed, 1 insertions, 1 deletions
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;