Prevents a crash of VLC during playback of a invalid matroska file,
found by John Villamil <johnv@matasano.com>.
CC: libav-stable@libav.org
(cherry picked from commit c3e10ae412)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n0.10.1