From 8f37c8f0f80d64ef8e870180d4e285affcee812f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Nov 2011 13:16:43 +0100 Subject: [PATCH] opt_pix_fmts: try to fix segfault on open solaris Signed-off-by: Michael Niedermayer --- cmdutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmdutils.c b/cmdutils.c index ee7d66063e..daca802181 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -775,6 +775,8 @@ int opt_pix_fmts(const char *opt, const char *arg) for (pix_fmt = 0; pix_fmt < PIX_FMT_NB; pix_fmt++) { const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[pix_fmt]; + if(!pix_desc->name) + continue; printf("%c%c%c%c%c %-16s %d %2d\n", sws_isSupportedInput (pix_fmt) ? 'I' : '.', sws_isSupportedOutput(pix_fmt) ? 'O' : '.',