[FFmpeg-devel] [PATCH 10/11] Make RTPFirstDynamicPayloadHandler static to rtpdec.c

Diego Elio Pettenò flameeyes
Tue Jan 25 00:36:18 CET 2011


---
 libavformat/rtpdec.c |    2 +-
 libavformat/rtpdec.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 03abb1d..ad7f45d 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -51,7 +51,7 @@ RTPDynamicProtocolHandler ff_realmedia_mp3_dynamic_handler = {
 };
 
 /* statistics functions */
-RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
+static RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
 
 void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
 {
diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h
index c5a5217..a27f743 100644
--- a/libavformat/rtpdec.h
+++ b/libavformat/rtpdec.h
@@ -189,7 +189,6 @@ struct RTPDemuxContext {
     int max_frames_per_packet;
 };
 
-extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler;
 void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler);
 RTPDynamicProtocolHandler *ff_rtp_handler_find_by_name(const char *name,
                                                   enum AVMediaType codec_type);
-- 
1.7.4.rc2




More information about the ffmpeg-devel mailing list