diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-18 17:17:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-18 17:22:17 +0200 |
commit | ef1c0b52953e4103956e5646880bf8c5681c33e2 (patch) | |
tree | e378c7b5842e074d5c22b168b4f105275e99c514 /libavfilter/avfiltergraph.c | |
parent | 6a314d59d5a165317d8757d2fc31d69569f268e5 (diff) | |
download | ffmpeg-streaming-ef1c0b52953e4103956e5646880bf8c5681c33e2.zip ffmpeg-streaming-ef1c0b52953e4103956e5646880bf8c5681c33e2.tar.gz |
avfiltergraph: add some debug info about selected pixel formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r-- | libavfilter/avfiltergraph.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index ccd5ff9..4b41529 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; } } |