]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: preliminary support for the JumpTT command
authorSteve Lhomme <robux@videolan.org>
Tue, 19 Apr 2005 20:05:59 +0000 (20:05 +0000)
committerSteve Lhomme <robux@videolan.org>
Tue, 19 Apr 2005 20:05:59 +0000 (20:05 +0000)
modules/demux/mkv.cpp

index 8e7431e5f06cde8ea14e476ba851ebf93080d37e..5f07f69a8499fb075aae2c81bc50a291c3e6cf26 100644 (file)
@@ -408,6 +408,8 @@ protected:
 
     uint16 p_GPRM[16];
     uint16 p_SPRM[24];
+
+    static const uint16 CMD_JUMP_TT = 0x3002;
 };
 
 class dvd_chapter_codec_c : public chapter_codec_cmds_c
@@ -4088,5 +4090,17 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
     if ( i_size != 8 )
         return false;
 
+    uint16 i_command = ( p_command[0] << 8 ) + p_command[1];
+
+    switch ( i_command )
+    {
+    case CMD_JUMP_TT:
+        {
+            uint8 i_title = p_command[5];
+            // TODO find in the ChapProcessPrivate matching this Title level
+            break;
+        }
+    }
+
     return true;
-}
\ No newline at end of file
+}