From a5f27f6db8e09d6f2897e80d88c96016c808acd7 Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Date: Sun, 7 Nov 2010 13:30:39 +0000
Subject: [PATCH] Use av_pix_fmt_descriptors information in
 avcodec_pix_fmt_string().

Originally committed as revision 25688 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/imgconvert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 8459d682073..3d7e7598a41 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -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])
             );
     }
 }
-- 
GitLab