summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-21 20:08:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-21 20:25:30 +0100
commitfb1bb97d875e0a97e01a1228bf76d8792856bfb4 (patch)
tree71e64f5091d6a16fd72ec1d822fe5e6f0f051e01 /libavcodec/imgconvert.c
parent64dc383de566710cda5954588e9e2f4638fd5ebc (diff)
imgconvert-test: skip pix formats without name
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 241a7d6536..1d9db31fd3 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)) {