# HG changeset patch # User diego # Date 1319641945 0 # Node ID a5d8b198c214671fc225e0609c30eedaafecbe0f # Parent 5761a9a31bcbc754db96238e8b9fa7e60b8fbf53 demux_rtp: Replace extern declarations by proper header #includes. diff -r 5761a9a31bcb -r a5d8b198c214 libmpdemux/demux_rtp.cpp --- a/libmpdemux/demux_rtp.cpp Tue Oct 25 20:45:09 2011 +0000 +++ b/libmpdemux/demux_rtp.cpp Wed Oct 26 15:12:25 2011 +0000 @@ -24,6 +24,7 @@ #ifdef __MINGW32__ // with. they are each protected from #include // windows.h, but not the other way around. #endif +#include "mp_msg.h" #include "demuxer.h" #include "demux_rtp.h" #include "stheader.h" @@ -146,7 +147,6 @@ // we were given a RTSP or SIP URL: char const* protocol = demuxer->stream->streaming_ctrl->url->protocol; char const* url = demuxer->stream->streaming_ctrl->url->url; - extern int verbose; if (strcmp(protocol, "rtsp") == 0) { if (rtsp_transport_http == 1) { rtsp_transport_http = demuxer->stream->streaming_ctrl->url->port; diff -r 5761a9a31bcb -r a5d8b198c214 libmpdemux/demux_rtp_codec.cpp --- a/libmpdemux/demux_rtp_codec.cpp Tue Oct 25 20:45:09 2011 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Wed Oct 26 15:12:25 2011 +0000 @@ -23,6 +23,8 @@ extern "C" { #include #include + +#include "mpcommon.h" #include "stheader.h" #include "libavutil/base64.h" } @@ -359,7 +361,7 @@ // figure out the frame rate by itself, so (unless the user specifies // it manually, using "-fps") we figure it out ourselves here, using the // presentation timestamps in successive packets, - extern double force_fps; if (force_fps != 0.0) return; // user used "-fps" + if (force_fps != 0.0) return; // user used "-fps" demux_stream_t* d_video = demuxer->video; sh_video_t* sh_video = (sh_video_t*)(d_video->sh);