diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 1c2ce59fd46a96425e8db625f343f92be1b3ca26..64ac09c1c7afe1e3c17bc03ef1da681253fbcc2e 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -280,13 +280,13 @@ static void list_formats(AVFormatContext *ctx, int type) if (!(vfd.flags & V4L2_FMT_FLAG_COMPRESSED) && type & V4L_RAWFORMATS) { 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", vfd.description); } else if (vfd.flags & V4L2_FMT_FLAG_COMPRESSED && type & V4L_COMPFORMATS) { 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", vfd.description); } else {