mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 21:27:08 +00:00
demux: propagate hls_bitrate and program_id in generated caption tracks
This commit is contained in:
parent
c39e332e50
commit
ad60753bce
@ -1277,6 +1277,8 @@ static struct sh_stream *demuxer_get_cc_track_locked(struct sh_stream *stream)
|
|||||||
return NULL;
|
return NULL;
|
||||||
sh->codec->codec = "eia_608";
|
sh->codec->codec = "eia_608";
|
||||||
sh->default_track = true;
|
sh->default_track = true;
|
||||||
|
sh->hls_bitrate = stream->hls_bitrate;
|
||||||
|
sh->program_id = stream->program_id;
|
||||||
stream->ds->cc = sh;
|
stream->ds->cc = sh;
|
||||||
demux_add_sh_stream_locked(stream->ds->in, sh);
|
demux_add_sh_stream_locked(stream->ds->in, sh);
|
||||||
sh->ds->ignore_eof = true;
|
sh->ds->ignore_eof = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user