mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Create a sh_sub_t for ogg subtitles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21051 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9799ea907a
commit
ceecfca462
@ -1146,10 +1146,10 @@ int demux_ogg_open(demuxer_t* demuxer) {
|
||||
mp_msg(MSGT_DEMUX, MSGL_INFO, "[Ogg] stream %d: subtitles (SRT-like text subtitles), -sid %d\n", ogg_d->num_sub, ogg_d->n_text);
|
||||
ogg_d->subs[ogg_d->num_sub].samplerate= get_uint64(&st->time_unit)/10;
|
||||
ogg_d->subs[ogg_d->num_sub].text = 1;
|
||||
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_SUBTITLE_ID=%d\n", ogg_d->n_text);
|
||||
ogg_d->subs[ogg_d->num_sub].id = ogg_d->n_text;
|
||||
if (demuxer->sub->id == ogg_d->n_text)
|
||||
text_id = ogg_d->num_sub;
|
||||
new_sh_sub(demuxer, ogg_d->n_text);
|
||||
ogg_d->n_text++;
|
||||
ogg_d->text_ids = (int *)realloc(ogg_d->text_ids, sizeof(int) * ogg_d->n_text);
|
||||
ogg_d->text_ids[ogg_d->n_text - 1] = ogg_d->num_sub;
|
||||
|
Loading…
Reference in New Issue
Block a user