[FFmpeg-cvslog] r25906 - trunk/libavformat/rtpdec.c

mstorsjo subversion
Tue Dec 7 14:28:14 CET 2010


Author: mstorsjo
Date: Tue Dec  7 14:28:13 2010
New Revision: 25906

Log:
rtpdec: Handle MP3 in RealRTSP

This fixes playback of a RealRTSP/MP3 URL from the RTSP samples on
MultimediaWiki.

Modified:
   trunk/libavformat/rtpdec.c

Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c	Tue Dec  7 12:42:19 2010	(r25905)
+++ trunk/libavformat/rtpdec.c	Tue Dec  7 14:28:13 2010	(r25906)
@@ -44,6 +44,12 @@
          'url_open_dyn_packet_buf')
 */
 
+RTPDynamicProtocolHandler ff_realmedia_mp3_dynamic_handler = {
+    .enc_name           = "X-MP3-draft-00",
+    .codec_type         = AVMEDIA_TYPE_AUDIO,
+    .codec_id           = CODEC_ID_MP3ADU,
+};
+
 /* statistics functions */
 RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
 
@@ -69,6 +75,7 @@ void av_register_rtp_dynamic_payload_han
     ff_register_dynamic_payload_handler(&ff_mp4a_latm_dynamic_handler);
     ff_register_dynamic_payload_handler(&ff_vp8_dynamic_handler);
     ff_register_dynamic_payload_handler(&ff_qcelp_dynamic_handler);
+    ff_register_dynamic_payload_handler(&ff_realmedia_mp3_dynamic_handler);
 
     ff_register_dynamic_payload_handler(&ff_ms_rtp_asf_pfv_handler);
     ff_register_dynamic_payload_handler(&ff_ms_rtp_asf_pfa_handler);



More information about the ffmpeg-cvslog mailing list