mirror of https://github.com/mpv-player/mpv
Set extradata for subtitle tracks in mkv demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25681 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
18e9531401
commit
2d0715a915
|
@ -2308,6 +2308,10 @@ demux_mkv_open_sub (demuxer_t *demuxer, mkv_track_t *track, int sid)
|
|||
track->private_data = buffer;
|
||||
track->private_size = size;
|
||||
}
|
||||
sh->extradata=malloc(track->private_size);
|
||||
memcpy (sh->extradata, track->private_data,
|
||||
track->private_size);
|
||||
sh->extradata_len = track->private_size;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue