diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-16 14:35:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-16 14:35:36 +0200 |
commit | f8598cefe921b4d19690e03558c5d1aedce84740 (patch) | |
tree | 7b8e37042659ca5eff7f160899bd5b2689c33ece /libavdevice | |
parent | 50393bce31a5618f5125aaaf97bb69886fc4261d (diff) | |
download | ffmpeg-streaming-f8598cefe921b4d19690e03558c5d1aedce84740.zip ffmpeg-streaming-f8598cefe921b4d19690e03558c5d1aedce84740.tar.gz |
avdevice/v4l2: Fix vertical alignment in list_formats() output
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 1c2ce59..64ac09c 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 { |