diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-02-09 19:42:17 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-02-14 18:01:50 +0100 |
commit | 1e6408a18ef4ca794d39ce3839c60ab1cf7dc925 (patch) | |
tree | ab038baf2745b2154687d67194c256f9483277fb /libavfilter | |
parent | 175ab5f9a923343dbeb3914a185c223c43702d95 (diff) | |
download | ffmpeg-1e6408a18ef4ca794d39ce3839c60ab1cf7dc925.tar.gz |
lavfi/showinfo: only print checksum for the existing planes
Make the output a bit nicer.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_showinfo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 92f10fa3db..657e6e6df2 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -62,7 +62,7 @@ static void end_frame(AVFilterLink *inlink) av_log(ctx, AV_LOG_INFO, "n:%d pts:%s pts_time:%s pos:%"PRId64" " "fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c " - "checksum:%08X plane_checksum:[%08X %08X %08X %08X]\n", + "checksum:%08X plane_checksum:[%08X", showinfo->frame, av_ts2str(picref->pts), av_ts2timestr(picref->pts, &inlink->time_base), picref->pos, av_pix_fmt_descriptors[picref->format].name, @@ -72,7 +72,11 @@ static void end_frame(AVFilterLink *inlink) picref->video->top_field_first ? 'T' : 'B', /* Top / Bottom */ picref->video->key_frame, av_get_picture_type_char(picref->video->pict_type), - checksum, plane_checksum[0], plane_checksum[1], plane_checksum[2], plane_checksum[3]); + checksum, plane_checksum[0]); + + for (plane = 1; picref->data[plane] && plane < 4; plane++) + av_log(ctx, AV_LOG_INFO, " %08X", plane_checksum[plane]); + av_log(ctx, AV_LOG_INFO, "]\n"); showinfo->frame++; avfilter_end_frame(inlink->dst->outputs[0]); |