[FFmpeg-devel] [PATCH 4/8] Use av_pix_fmt_descriptors information in avcodec_pix_fmt_string().

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


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

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index cdaeb45..e9477c4 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -443,7 +443,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])
             );
     }
 }
-- 
1.7.1




More information about the ffmpeg-devel mailing list