From eec9b8a012577d4462a3170dfef21d7ef9130edb Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Sat, 27 Apr 2013 09:16:03 +0800 Subject: [PATCH] demux_mkv: fix segfault issue playing back VC1 in a mkv This bug was introduced in commit 06eee1b. --- demux/demux_mkv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c index 35d5938d78..86c17ea9a8 100644 --- a/demux/demux_mkv.c +++ b/demux/demux_mkv.c @@ -1147,7 +1147,7 @@ static int demux_mkv_open_video(demuxer_t *demuxer, mkv_track_t *track) bih->biYPelsPerMeter = le2me_32(src->biYPelsPerMeter); bih->biClrUsed = le2me_32(src->biClrUsed); bih->biClrImportant = le2me_32(src->biClrImportant); - extradata = track->private_data; + extradata = track->private_data + sizeof(*bih); extradata_size = track->private_size - sizeof(*bih); if (track->v_width == 0)