avformat/segment: relay programs to child muxers

This commit is contained in:
Gyan Doshi
2023-02-07 20:18:07 +05:30
parent 0005b36eb7
commit 1b82e58a3a
+8
View File
@@ -183,6 +183,14 @@ static int segment_mux_init(AVFormatContext *s)
}
}
for (i = 0; i < s->nb_programs; i++) {
ret = av_program_copy(oc, (const AVFormatContext *)s, s->programs[i]->id, 0);
if (ret < 0) {
av_log(s, AV_LOG_ERROR, "unable to transfer program %d to child muxer\n", s->programs[i]->id);
return ret;
}
}
return 0;
}