[FFmpeg-cvslog] r25801 - trunk/libavfilter/vf_aspect.c
stefano
subversion
Mon Nov 22 23:03:27 CET 2010
Author: stefano
Date: Mon Nov 22 23:03:27 2010
New Revision: 25801
Log:
Add informative log messages to the set aspect filters.
Modified:
trunk/libavfilter/vf_aspect.c
Modified: trunk/libavfilter/vf_aspect.c
==============================================================================
--- trunk/libavfilter/vf_aspect.c Mon Nov 22 23:03:24 2010 (r25800)
+++ trunk/libavfilter/vf_aspect.c Mon Nov 22 23:03:27 2010 (r25801)
@@ -55,6 +55,7 @@ static av_cold int init(AVFilterContext
if (aspect->aspect.den == 0)
aspect->aspect = (AVRational) {0, 1};
+ av_log(ctx, AV_LOG_INFO, "a:%d/%d\n", aspect->aspect.num, aspect->aspect.den);
return 0;
}
@@ -71,11 +72,14 @@ static void start_frame(AVFilterLink *li
static int setdar_config_props(AVFilterLink *inlink)
{
AspectContext *aspect = inlink->dst->priv;
+ AVRational dar = aspect->aspect;
av_reduce(&aspect->aspect.num, &aspect->aspect.den,
aspect->aspect.num * inlink->h,
aspect->aspect.den * inlink->w, 100);
+ av_log(inlink->dst, AV_LOG_INFO, "w:%d h:%d -> dar:%d/%d par:%d/%d\n",
+ inlink->h, inlink->w, dar.num, dar.den, aspect->aspect.num, aspect->aspect.den);
return 0;
}
More information about the ffmpeg-cvslog
mailing list