mirror of https://github.com/mpv-player/mpv
demux_mkv: fix undefined behavior
With some files, the extradata variable can remain uninitialized, but will be used for memory access. CC: @mpv-player/stable (with high priority)
This commit is contained in:
parent
7d9f8f75ea
commit
a6eb0714fa
|
@ -1149,7 +1149,7 @@ static const videocodec_info_t vinfo[] = {
|
|||
|
||||
static int demux_mkv_open_video(demuxer_t *demuxer, mkv_track_t *track)
|
||||
{
|
||||
unsigned char *extradata;
|
||||
unsigned char *extradata = NULL;
|
||||
unsigned int extradata_size = 0;
|
||||
bool raw = false;
|
||||
struct sh_stream *sh = new_sh_stream(demuxer, STREAM_VIDEO);
|
||||
|
|
Loading…
Reference in New Issue