[FFmpeg-cvslog] imgconvert-test: skip pix formats without name
Michael Niedermayer
git at videolan.org
Wed Nov 21 20:26:18 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 21 20:08:53 2012 +0100| [fb1bb97d875e0a97e01a1228bf76d8792856bfb4] | committer: Michael Niedermayer
imgconvert-test: skip pix formats without name
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb1bb97d875e0a97e01a1228bf76d8792856bfb4
---
libavcodec/imgconvert.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 241a7d6..1d9db31 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -637,7 +637,7 @@ int main(void){
for (i=0; i<AV_PIX_FMT_NB*2; i++) {
AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(i);
- if(!desc)
+ if(!desc || !desc->name)
continue;
av_log(0, AV_LOG_INFO, "pix fmt %s yuv_plan:%d avg_bpp:%d colortype:%d\n", desc->name, is_yuv_planar(desc), av_get_padded_bits_per_pixel(desc), get_color_type(desc));
if ((!(desc->flags & PIX_FMT_ALPHA)) != (desc->nb_components != 2 && desc->nb_components != 4)) {
More information about the ffmpeg-cvslog
mailing list