]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
Use a heuristic for describing the RTP packets using sample data
[ffmpeg] / cmdutils.c
index d02b36e66e51e2d3daaeebfab3483394541a15db..80917c3a19c16dcff44d6ae6e6e04cdc6617e996 100644 (file)
@@ -294,17 +294,9 @@ void print_error(const char *filename, int err)
     char errbuf[128];
     const char *errbuf_ptr = errbuf;
 
-    switch(err) {
-#if CONFIG_NETWORK
-    case FF_NETERROR(EPROTONOSUPPORT):
-        fprintf(stderr, "%s: Unsupported network protocol\n", filename);
-        break;
-#endif
-    default:
-        if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
-            errbuf_ptr = strerror(AVUNERROR(err));
-        fprintf(stderr, "%s: %s\n", filename, errbuf_ptr);
-    }
+    if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
+        errbuf_ptr = strerror(AVUNERROR(err));
+    fprintf(stderr, "%s: %s\n", filename, errbuf_ptr);
 }
 
 #define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent)             \
@@ -617,6 +609,11 @@ void show_pix_fmts(void)
         "FLAGS NAME            NB_COMPONENTS BITS_PER_PIXEL\n"
         "-----\n");
 
+#if !CONFIG_SWSCALE
+#   define sws_isSupportedInput(x)  0
+#   define sws_isSupportedOutput(x) 0
+#endif
+
     for (pix_fmt = 0; pix_fmt < PIX_FMT_NB; pix_fmt++) {
         const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[pix_fmt];
         printf("%c%c%c%c%c %-16s       %d            %2d\n",