simplify format string for writing pix_fmt string.
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 26 Sep 2009 22:54:29 +0000 (22:54 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 26 Sep 2009 22:54:29 +0000 (22:54 +0000)
Originally committed as revision 20034 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgconvert.c

index 8e0490a..4698fcf 100644 (file)
@@ -585,7 +585,7 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
         char is_alpha_char= info.is_alpha ? 'y' : 'n';
 
         snprintf (buf, buf_size,
-                  "%-11s" "     %1d     " "   %2d " "     %c   ",
+                  "%-11s %5d %9d %6c",
                   info.name,
                   info.nb_channels,
                   info.depth,