[FFmpeg-devel] [PATCH 8/8] Replace "depth" with "nb_bits" in the header of avcodec_pix_fmt_string().

Stefano Sabatini stefano.sabatini-lala
Mon Nov 15 12:15:15 CET 2010


---
 libavcodec/imgconvert.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 3a28da9..d1a8d8d 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -438,12 +438,12 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
     /* print header */
     if (pix_fmt < 0)
         snprintf (buf, buf_size,
-                  "name      " " nb_components" " depth"
+                  "name      " " nb_components" " nb_bits"
             );
     else{
         const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
         snprintf (buf, buf_size,
-                  "%-11s %5d %7d",
+                  "%-11s %7d %10d",
                   pixdesc->name,
                   pixdesc->nb_components,
                   av_get_bits_per_pixel(pixdesc)
-- 
1.7.1




More information about the ffmpeg-devel mailing list