Browse code

opt_pix_fmts: try to fix segfault on open solaris

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/11/26 21:16:43
Showing 1 changed files
... ...
@@ -775,6 +775,8 @@ int opt_pix_fmts(const char *opt, const char *arg)
775 775
 
776 776
     for (pix_fmt = 0; pix_fmt < PIX_FMT_NB; pix_fmt++) {
777 777
         const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[pix_fmt];
778
+        if(!pix_desc->name)
779
+            continue;
778 780
         printf("%c%c%c%c%c %-16s       %d            %2d\n",
779 781
                sws_isSupportedInput (pix_fmt)      ? 'I' : '.',
780 782
                sws_isSupportedOutput(pix_fmt)      ? 'O' : '.',