aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-26 13:16:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-26 13:25:29 +0100
commit8f37c8f0f80d64ef8e870180d4e285affcee812f (patch)
tree33639861ec857cbd35f3687d5b2b32c5d761fd35
parent28338bc2a3bb316cde2dfc308722c3cdc3d7b046 (diff)
downloadffmpeg-8f37c8f0f80d64ef8e870180d4e285affcee812f.tar.gz
opt_pix_fmts: try to fix segfault on open solaris
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--cmdutils.c2
1 files changed, 2 insertions, 0 deletions
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' : '.',