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:
wm4 2020-04-13 14:26:44 +02:00
parent f7f947f960
commit dc9135b164
1 changed files with 1 additions and 1 deletions

View File

@ -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);