diff rtpdec_xiph.c @ 5921:f8d4cc91c798 libavformat

Merge Vorbis / Theora depayloaders. Patch by Josh Allmann <joshua DOT allmann AT gmail DOT com>.
author rbultje
date Thu, 01 Apr 2010 21:43:22 +0000
parents c07680f39362
children 1141ba6decd2
line wrap: on
line diff
--- a/rtpdec_xiph.c	Thu Apr 01 21:42:10 2010 +0000
+++ b/rtpdec_xiph.c	Thu Apr 01 21:43:22 2010 +0000
@@ -1,5 +1,6 @@
 /*
  * Xiph RTP Protocols
+ * Copyright (c) 2009 Colin McQuillian
  * Copyright (c) 2010 Josh Allmann
  *
  * This file is part of FFmpeg.
@@ -22,6 +23,7 @@
 /**
  * @file libavformat/rtpdec_xiph.c
  * @brief Xiph / RTP Code
+ * @author Colin McQuillan <m.niloc@gmail.com>
  * @author Josh Allmann <joshua.allmann@gmail.com>
  */
 
@@ -385,3 +387,13 @@
     .close            = xiph_free_context,
     .parse_packet     = xiph_handle_packet
 };
+
+RTPDynamicProtocolHandler ff_vorbis_dynamic_handler = {
+    .enc_name         = "vorbis",
+    .codec_type       = CODEC_TYPE_AUDIO,
+    .codec_id         = CODEC_ID_VORBIS,
+    .parse_sdp_a_line = xiph_parse_sdp_line,
+    .open             = xiph_new_context,
+    .close            = xiph_free_context,
+    .parse_packet     = xiph_handle_packet
+};