Remove the inclusion of rtsp.h and rtp.h from avformat.h, and
authorLuca Abeni <lucabe72@email.it>
Mon, 29 Oct 2007 09:15:35 +0000 (09:15 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 29 Oct 2007 09:15:35 +0000 (09:15 +0000)
explicitly include such headers where needed

Originally committed as revision 10871 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c
ffserver.c
libavformat/avformat.h
libavformat/rtsp.c

index 6536e02..2804cf6 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -22,6 +22,7 @@
 #include <math.h>
 #include <limits.h>
 #include "avformat.h"
+#include "rtsp.h"
 #include "swscale.h"
 #include "avstring.h"
 
index 94c565a..96b2987 100644 (file)
@@ -26,6 +26,8 @@
 #include <string.h>
 #include <stdlib.h>
 #include "avformat.h"
+#include "rtsp.h"
+#include "rtp.h"
 
 #include <stdarg.h>
 #include <unistd.h>
index 4070e02..4c72a61 100644 (file)
@@ -460,10 +460,6 @@ enum CodecID av_guess_image2_codec(const char *filename);
 /* XXX: use automatic init with either ELF sections or C file parser */
 /* modules */
 
-#include "rtp.h"
-
-#include "rtsp.h"
-
 /* utils.c */
 void av_register_input_format(AVInputFormat *format);
 void av_register_output_format(AVOutputFormat *format);
index db11049..9ef7f1f 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h> /* for select() prototype */
 #include "network.h"
 #include "avstring.h"
+#include "rtsp.h"
 
 #include "rtp_internal.h"