[vlc-commits] mkv: fix GotoAndPlay command uid conversion

Simon Latapie git at videolan.org
Wed Feb 27 15:37:26 CET 2019


vlc/vlc-3.0 | branch: master | Simon Latapie <garf at videolan.org> | Wed Feb 27 13:13:33 2019 +0100| [c31b32988afd3e003a48f7c77b6cde6132ec8649] | committer: Hugo Beauzée-Luyssen

mkv: fix GotoAndPlay command uid conversion

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
(cherry picked from commit 258eec08e62020ac8f89243238da27a715897a4c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/demux/mkv/chapter_command.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/chapter_command.cpp b/modules/demux/mkv/chapter_command.cpp
index cff2d56f9c..1ec3ffe9f2 100644
--- a/modules/demux/mkv/chapter_command.cpp
+++ b/modules/demux/mkv/chapter_command.cpp
@@ -716,7 +716,7 @@ bool matroska_script_interpretor_c::Interpret( const binary * p_command, size_t
         }
 
         std::string st = sz_command.substr( i+1, j-i-1 );
-        int64_t i_chapter_uid = atoi( st.c_str() );
+        int64_t i_chapter_uid = atoll( st.c_str() );
 
         virtual_segment_c *p_vsegment;
         virtual_chapter_c *p_vchapter = sys.FindChapter( i_chapter_uid, p_vsegment );



More information about the vlc-commits mailing list