[FFmpeg-cvslog] lavfi/aspect: show log info even in case no argument is provided to setdar/ setsar

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:31:28 2012 +0100| [360218713f0da84b8a7f5658eeed61e23e9ce3ef] | committer: Stefano Sabatini

lavfi/aspect: show log info even in case no argument is provided to setdar/setsar

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

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

diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 9b07de9..7c4014a 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -43,9 +43,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
                    "Invalid string '%s' for aspect ratio.\n", args);
             return ret;
         }
-
-        av_log(ctx, AV_LOG_INFO, "a:%d/%d\n", aspect->ratio.num, aspect->ratio.den);
     }
+
+    av_log(ctx, AV_LOG_INFO, "a:%d/%d\n", aspect->ratio.num, aspect->ratio.den);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list