[vlc-devel] [PATCH]live555: Support playing Theora video RTP streams

Ross Finlayson finlayson at live555.com
Mon Feb 17 23:06:47 CET 2014


diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 88ddc2e..6e04a7b 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1091,6 +1091,20 @@ static int SessionsSetup( demux_t *p_demux )
                 {
                     tk->fmt.i_codec = VLC_CODEC_VP8;
                 }
+                else if( !strcmp( sub->codecName(), "THEORA" ) )
+                {
+                    tk->fmt.i_codec = VLC_CODEC_THEORA;
+                    unsigned int i_extra;
+                    unsigned char *p_extra;
+                    if( ( p_extra=parseVorbisConfigStr( sub->fmtp_config(),
+                                                        i_extra ) ) )
+                    {
+                        tk->fmt.i_extra = i_extra;
+                        tk->fmt.p_extra = p_extra;
+                    }
+                    else
+                        msg_Warn( p_demux,"Missing or unsupported theora header." );
+                }
             }
             else if( !strcmp( sub->mediumName(), "text" ) )
             {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140218/3fcd6de9/attachment.html>


More information about the vlc-devel mailing list