summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2023-02-21 15:24:41 -0600
committerrcombs <rcombs@rcombs.me>2023-03-03 23:54:46 -0600
commitad60753bce0c67c1431b796af15c0cd4f734b35d (patch)
tree32bc48f67c11c0bbf18ee5b36d50462473091e12 /demux
parentc39e332e50d4589cf92662ba3ad1c9640f7c82fe (diff)
downloadmpv-ad60753bce0c67c1431b796af15c0cd4f734b35d.tar.bz2
mpv-ad60753bce0c67c1431b796af15c0cd4f734b35d.tar.xz
demux: propagate hls_bitrate and program_id in generated caption tracks
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c2
1 files changed, 2 insertions, 0 deletions
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;