mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
demux: don't let --sub-create-cc-track add a track for attached pictures
Unfortunately, attached pictures (from tags etc.) are treated as video tracks. That meant --sub-create-cc-track added a CC track for them as well. Stop doing that. See: #7608
This commit is contained in:
parent
f7f947f960
commit
dc9135b164
@ -3203,7 +3203,7 @@ static void demux_init_ccs(struct demuxer *demuxer, struct demux_opts *opts)
|
||||
pthread_mutex_lock(&in->lock);
|
||||
for (int n = 0; n < in->num_streams; n++) {
|
||||
struct sh_stream *sh = in->streams[n];
|
||||
if (sh->type == STREAM_VIDEO)
|
||||
if (sh->type == STREAM_VIDEO && !sh->attached_picture)
|
||||
demuxer_get_cc_track_locked(sh);
|
||||
}
|
||||
pthread_mutex_unlock(&in->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user