aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-18 17:17:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-18 17:22:17 +0200
commitef1c0b52953e4103956e5646880bf8c5681c33e2 (patch)
treee378c7b5842e074d5c22b168b4f105275e99c514
parent6a314d59d5a165317d8757d2fc31d69569f268e5 (diff)
downloadffmpeg-ef1c0b52953e4103956e5646880bf8c5681c33e2.tar.gz
avfiltergraph: add some debug info about selected pixel formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/avfiltergraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index ccd5ff90f8..4b41529e3a 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -430,6 +430,9 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref)
enum PixelFormat p = link->in_formats->formats[i];
best= avcodec_find_best_pix_fmt2(best, p, ref->format, has_alpha, NULL);
}
+ av_log(link->src,AV_LOG_DEBUG, "picking %s out of %d ref:%s alpha:%d\n",
+ av_get_pix_fmt_name(best), link->in_formats->format_count,
+ av_get_pix_fmt_name(ref->format), has_alpha);
link->in_formats->formats[0] = best;
}
}