From ad60753bce0c67c1431b796af15c0cd4f734b35d Mon Sep 17 00:00:00 2001 From: rcombs Date: Tue, 21 Feb 2023 15:24:41 -0600 Subject: [PATCH] demux: propagate hls_bitrate and program_id in generated caption tracks --- demux/demux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demux/demux.c b/demux/demux.c index 45184e60f6..3f62661bb9 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -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;