[FFmpeg-cvslog] opt_pix_fmts: try to fix segfault on open solaris
Michael Niedermayer
git at videolan.org
Sat Nov 26 13:26:26 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 26 13:16:43 2011 +0100| [8f37c8f0f80d64ef8e870180d4e285affcee812f] | committer: Michael Niedermayer
opt_pix_fmts: try to fix segfault on open solaris
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f37c8f0f80d64ef8e870180d4e285affcee812f
---
cmdutils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index ee7d660..daca802 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' : '.',
More information about the ffmpeg-cvslog
mailing list