Commit f8598cef authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/v4l2: Fix vertical alignment in list_formats() output

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 50393bce
...@@ -280,13 +280,13 @@ static void list_formats(AVFormatContext *ctx, int type) ...@@ -280,13 +280,13 @@ static void list_formats(AVFormatContext *ctx, int type)
if (!(vfd.flags & V4L2_FMT_FLAG_COMPRESSED) && if (!(vfd.flags & V4L2_FMT_FLAG_COMPRESSED) &&
type & V4L_RAWFORMATS) { type & V4L_RAWFORMATS) {
const char *fmt_name = av_get_pix_fmt_name(pix_fmt); const char *fmt_name = av_get_pix_fmt_name(pix_fmt);
av_log(ctx, AV_LOG_INFO, "Raw : %9s : %20s :", av_log(ctx, AV_LOG_INFO, "Raw : %11s : %20s :",
fmt_name ? fmt_name : "Unsupported", fmt_name ? fmt_name : "Unsupported",
vfd.description); vfd.description);
} else if (vfd.flags & V4L2_FMT_FLAG_COMPRESSED && } else if (vfd.flags & V4L2_FMT_FLAG_COMPRESSED &&
type & V4L_COMPFORMATS) { type & V4L_COMPFORMATS) {
const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id); const AVCodecDescriptor *desc = avcodec_descriptor_get(codec_id);
av_log(ctx, AV_LOG_INFO, "Compressed: %9s : %20s :", av_log(ctx, AV_LOG_INFO, "Compressed: %11s : %20s :",
desc ? desc->name : "Unsupported", desc ? desc->name : "Unsupported",
vfd.description); vfd.description);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment