[SCM] libav/experimental: Remove alpha information from avcodec_pix_fmt_string(), as that information does not belong to the pixel format.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:18:42 UTC 2013
The following commit has been merged in the experimental branch:
commit 24409b50539edd3228e910bb97cda9fdccf7c8ac
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Sun Nov 7 13:01:12 2010 +0000
Remove alpha information from avcodec_pix_fmt_string(), as that
information does not belong to the pixel format.
Originally committed as revision 25686 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 879335c..0ee2f49 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -437,19 +437,16 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
/* 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
);
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list