[FFmpeg-cvslog] lavfi/aspect: fix d2q convert in init.

Clément Bœsch git at videolan.org
Thu Apr 11 22:48:27 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Apr 11 22:46:34 2013 +0200| [7bd014eaecef72fb680c7146351998708843bb27] | committer: Clément Bœsch

lavfi/aspect: fix d2q convert in init.

Regression since git 71ef1ec7b.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7bd014eaecef72fb680c7146351998708843bb27
---

 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 4e7db56..99457a7 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;



More information about the ffmpeg-cvslog mailing list