Browse Source

lavfi/crop: show input and output sample aspect ratio in the log

tags/n0.11
Stefano Sabatini 13 years ago
parent
commit
d9f26a0d71
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavfilter/vf_crop.c

+ 3
- 2
libavfilter/vf_crop.c View File

@@ -221,8 +221,9 @@ static int config_input(AVFilterLink *link)
} else } else
crop->out_sar = link->sample_aspect_ratio; crop->out_sar = link->sample_aspect_ratio;


av_log(ctx, AV_LOG_INFO, "w:%d h:%d -> w:%d h:%d\n",
link->w, link->h, crop->w, crop->h);
av_log(ctx, AV_LOG_INFO, "w:%d h:%d sar:%d/%d -> w:%d h:%d sar:%d/%d\n",
link->w, link->h, link->sample_aspect_ratio.num, link->sample_aspect_ratio.den,
crop->w, crop->h, crop->out_sar.num, crop->out_sar.den);


if (crop->w <= 0 || crop->h <= 0 || if (crop->w <= 0 || crop->h <= 0 ||
crop->w > link->w || crop->h > link->h) { crop->w > link->w || crop->h > link->h) {


Loading…
Cancel
Save