[FFmpeg-devel] [PATCH 2/8] Remove alpha information from avcodec_pix_fmt_string(), as that information does not belong to the pixel format.

Stefano Sabatini stefano.sabatini-lala
Fri Nov 5 12:00:40 CET 2010


---
 libavcodec/imgconvert.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index fa8469a..cdaeb45 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -434,19 +434,16 @@ 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_channels" " depth" " is_alpha"
+                  "name      " " nb_channels" " depth"
             );
     else{
         PixFmtInfo info= pix_fmt_info[pix_fmt];
 
-        char is_alpha_char= info.is_alpha ? 'y' : 'n';
-
         snprintf (buf, buf_size,
-                  "%-11s %5d %9d %6c",
+                  "%-11s %5d %9d",
                   av_pix_fmt_descriptors[pix_fmt].name,
                   info.nb_channels,
-                  info.depth,
-                  is_alpha_char
+                  info.depth
             );
     }
 }
-- 
1.7.1




More information about the ffmpeg-devel mailing list