[SCM] libav/experimental: Use av_pix_fmt_descriptors information in avcodec_pix_fmt_string().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:18:43 UTC 2013


The following commit has been merged in the experimental branch:
commit a5f27f6db8e09d6f2897e80d88c96016c808acd7
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sun Nov 7 13:30:39 2010 +0000

    Use av_pix_fmt_descriptors information in avcodec_pix_fmt_string().
    
    Originally committed as revision 25688 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 8459d68..3d7e759 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])
             );
     }
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list