[FFmpeg-cvslog] r25686 - trunk/libavcodec/imgconvert.c

stefano subversion
Sun Nov 7 14:01:12 CET 2010


Author: stefano
Date: Sun Nov  7 14:01:12 2010
New Revision: 25686

Log:
Remove alpha information from avcodec_pix_fmt_string(), as that
information does not belong to the pixel format.

Modified:
   trunk/libavcodec/imgconvert.c

Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c	Sun Nov  7 04:05:12 2010	(r25685)
+++ trunk/libavcodec/imgconvert.c	Sun Nov  7 14:01:12 2010	(r25686)
@@ -437,19 +437,16 @@ void avcodec_pix_fmt_string (char *buf, 
     /* 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
             );
     }
 }



More information about the ffmpeg-cvslog mailing list