[FFmpeg-cvslog] lavfi/aspect: set default value to 0:1, as stated in the docs

Stefano Sabatini git at videolan.org
Sat Feb 18 11:44:19 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Feb 18 11:41:53 2012 +0100| [4538d66010cedee83ea2cba4480f091c7cd02311] | committer: Stefano Sabatini

lavfi/aspect: set default value to 0:1, as stated in the docs

Fix regression introduced in commit 70ffda3217c58bbbfb8a7e7c58824b8ca6c56128.

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

 libavfilter/vf_aspect.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 2fdf785..89eaf5f 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -35,6 +35,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     AspectContext *aspect = ctx->priv;
     int ret;
+    aspect->ratio = (AVRational) {0, 1};
 
     if (args) {
         if ((ret = av_parse_ratio(&aspect->ratio, args, 100, 0, ctx)) < 0 ||



More information about the ffmpeg-cvslog mailing list