[FFmpeg-devel] [PATCH] ffmpeg and ffplay builds fail when libavdevice build is disabled

Georgi Chorbadzhiyski gf
Wed Mar 3 17:17:37 CET 2010


Around 03/03/10 16:32, Georgi Chorbadzhiyski scribbled:
>   Patch 2 - Just define avdevice_register_all() to nothing in avdevice.h

The second patch has an extra ; that is not needed. Fixed patch is
attached.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/
-------------- next part --------------
diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h
index dcd835c..25e1177 100644
--- a/libavdevice/avdevice.h
+++ b/libavdevice/avdevice.h
@@ -52,7 +52,11 @@ const char *avdevice_license(void);
  * Initialize libavdevice and register all the input and output devices.
  * @warning This function is not thread safe.
  */
+#if CONFIG_AVDEVICE
 void avdevice_register_all(void);
+#else
+#define avdevice_register_all(x) do { } while(0)
+#endif
 
 #endif /* AVDEVICE_AVDEVICE_H */
 



More information about the ffmpeg-devel mailing list