Use av_pix_fmt_descriptors information in avcodec_pix_fmt_string().
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 7 Nov 2010 13:30:39 +0000 (13:30 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 7 Nov 2010 13:30:39 +0000 (13:30 +0000)
Originally committed as revision 25688 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgconvert.c

index 8459d68..3d7e759 100644 (file)
@@ -446,7 +446,7 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
                   "%-11s %5d %9d",
                   av_pix_fmt_descriptors[pix_fmt].name,
                   info.nb_channels,
-                  info.depth
+                  av_get_bits_per_pixel(&av_pix_fmt_descriptors[pix_fmt])
             );
     }
 }