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

Steve Lhomme git at videolan.org
Fri Nov 24 17:52:31 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Nov 24 17:39:23 2017 +0100| [f34c7c0ab4dbca2abad9d4e287196ea2dca69695] | committer: Jean-Baptiste Kempf

mkv:chapter_command: use better values for registers

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

CID #1253081

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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;



More information about the vlc-commits mailing list