[vlc-devel] [PATCH] mkv:chapter_command: use better values for registers

Steve Lhomme robux4 at videolabs.io
Fri Nov 24 17:39:23 CET 2017


The whole doesn't seem to match the VMI page though.

CID #1253081
---
 modules/demux/mkv/chapter_command.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/chapter_command.cpp b/modules/demux/mkv/chapter_command.cpp
index 0df2ec5f95..cff2d56f9c 100644
--- a/modules/demux/mkv/chapter_command.cpp
+++ b/modules/demux/mkv/chapter_command.cpp
@@ -180,12 +180,12 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
         case 7:
             if ( ((p_command[1] >> 4) & 0x7) == 0)
             {
-                i_cr1 = p_command[2];
+                i_cr1 = p_command[4];
                 i_cr2 = (p_command[6] << 8) + p_command[7];
             }
             else
             {
-                i_cr1 = p_command[2];
+                i_cr1 = p_command[5];
                 i_cr2 = (p_command[6] << 8) + p_command[7];
             }
             break;
-- 
2.14.2



More information about the vlc-devel mailing list