vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to