diff options
author | rcombs <rcombs@rcombs.me> | 2023-02-21 15:24:41 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2023-03-03 23:54:46 -0600 |
commit | ad60753bce0c67c1431b796af15c0cd4f734b35d (patch) | |
tree | 32bc48f67c11c0bbf18ee5b36d50462473091e12 /demux | |
parent | c39e332e50d4589cf92662ba3ad1c9640f7c82fe (diff) | |
download | mpv-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.c | 2 |
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; |