Originally committed as revision 25801 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -55,6 +55,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) |
| 55 | 55 |
if (aspect->aspect.den == 0) |
| 56 | 56 |
aspect->aspect = (AVRational) {0, 1};
|
| 57 | 57 |
|
| 58 |
+ av_log(ctx, AV_LOG_INFO, "a:%d/%d\n", aspect->aspect.num, aspect->aspect.den); |
|
| 58 | 59 |
return 0; |
| 59 | 60 |
} |
| 60 | 61 |
|
| ... | ... |
@@ -71,11 +72,14 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) |
| 71 | 71 |
static int setdar_config_props(AVFilterLink *inlink) |
| 72 | 72 |
{
|
| 73 | 73 |
AspectContext *aspect = inlink->dst->priv; |
| 74 |
+ AVRational dar = aspect->aspect; |
|
| 74 | 75 |
|
| 75 | 76 |
av_reduce(&aspect->aspect.num, &aspect->aspect.den, |
| 76 | 77 |
aspect->aspect.num * inlink->h, |
| 77 | 78 |
aspect->aspect.den * inlink->w, 100); |
| 78 | 79 |
|
| 80 |
+ av_log(inlink->dst, AV_LOG_INFO, "w:%d h:%d -> dar:%d/%d par:%d/%d\n", |
|
| 81 |
+ inlink->h, inlink->w, dar.num, dar.den, aspect->aspect.num, aspect->aspect.den); |
|
| 79 | 82 |
return 0; |
| 80 | 83 |
} |
| 81 | 84 |
|