[vlc-commits] demux: smooth: add support for ttml

Francois Cartegnie git at videolan.org
Wed May 16 09:39:43 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May  9 11:02:53 2018 +0200| [38fbfc52339ca5083e54330010f1bc8dfeeb5bf4] | committer: Francois Cartegnie

demux: smooth: add support for ttml

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38fbfc52339ca5083e54330010f1bc8dfeeb5bf4
---

 modules/demux/smooth/playlist/ForgedInitSegment.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/demux/smooth/playlist/ForgedInitSegment.cpp b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
index bb6806c8ae..f5ce10188a 100644
--- a/modules/demux/smooth/playlist/ForgedInitSegment.cpp
+++ b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
@@ -190,6 +190,9 @@ void ForgedInitSegment::setFourCC(const std::string &fcc)
             case VLC_FOURCC( 'W', 'V', 'C', '1' ):
                 es_type = VIDEO_ES;
                 break;
+            case VLC_FOURCC( 'T', 'T', 'M', 'L' ):
+                es_type = SPU_ES;
+                break;
             case VLC_FOURCC( 'A', 'A', 'C', 'L' ):
             case VLC_FOURCC( 'W', 'M', 'A', 'P' ):
             default:
@@ -264,6 +267,11 @@ block_t * ForgedInitSegment::buildMoovBox()
                     trackinfo.fmt.i_extra = i_extradata;
                 }
             }
+            break;
+
+        case SPU_ES:
+            break;
+
         default:
             break;
     }



More information about the vlc-commits mailing list