aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-12-07 13:28:13 +0000
committerMartin Storsjö <martin@martin.st>2010-12-07 13:28:13 +0000
commit2eeefe205ff45f1a09290221fe4e1062f84ac781 (patch)
tree3541e74e0d8fd34c8552cc049d0b434c4ec9a6d2 /libavformat/rtpdec.c
parent4d1156cb2c1ccc5a1f245a69adab579c1bb884c9 (diff)
downloadffmpeg-2eeefe205ff45f1a09290221fe4e1062f84ac781.tar.gz
rtpdec: Handle MP3 in RealRTSP
This fixes playback of a RealRTSP/MP3 URL from the RTSP samples on MultimediaWiki. Originally committed as revision 25906 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 638fbdd119..b7bdc0bb4d 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -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_handlers(void)
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);