From: Luca Abeni Date: Mon, 29 Oct 2007 09:15:35 +0000 (+0000) Subject: Remove the inclusion of rtsp.h and rtp.h from avformat.h, and X-Git-Tag: v0.5~7109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c971ff1977c6fc1e1974525edc7e2d96d96da188;p=platform%2Fupstream%2Flibav.git Remove the inclusion of rtsp.h and rtp.h from avformat.h, and explicitly include such headers where needed Originally committed as revision 10871 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/ffplay.c b/ffplay.c index 6536e02c7..2804cf687 100644 --- a/ffplay.c +++ b/ffplay.c @@ -22,6 +22,7 @@ #include #include #include "avformat.h" +#include "rtsp.h" #include "swscale.h" #include "avstring.h" diff --git a/ffserver.c b/ffserver.c index 94c565a02..96b298795 100644 --- a/ffserver.c +++ b/ffserver.c @@ -26,6 +26,8 @@ #include #include #include "avformat.h" +#include "rtsp.h" +#include "rtp.h" #include #include diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 4070e02ea..4c72a617c 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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); diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index db1104900..9ef7f1f80 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -24,6 +24,7 @@ #include /* for select() prototype */ #include "network.h" #include "avstring.h" +#include "rtsp.h" #include "rtp_internal.h"