demux: propagate hls_bitrate and program_id in generated caption tracks

This commit is contained in:
rcombs 2023-02-21 15:24:41 -06:00
parent c39e332e50
commit ad60753bce
1 changed files with 2 additions and 0 deletions

View File

@ -1277,6 +1277,8 @@ static struct sh_stream *demuxer_get_cc_track_locked(struct sh_stream *stream)
return NULL;
sh->codec->codec = "eia_608";
sh->default_track = true;
sh->hls_bitrate = stream->hls_bitrate;
sh->program_id = stream->program_id;
stream->ds->cc = sh;
demux_add_sh_stream_locked(stream->ds->in, sh);
sh->ds->ignore_eof = true;