Fix crash in invalid mkv files
VirtualFromSegments can crash if the std::vector passed in is empty, which can happen in corrupted files. This is just a simple check for this case, making it fail elegantly rather than crashing OK-ed-by: Denis Charmet <typx@dinauz.org> Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment