mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-18 21:17:07 +00:00
segment: use mpegts_flags instead of the deprecated resend_headers option
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0ffe32cf8f
commit
413fa76f61
@ -222,7 +222,7 @@ static int segment_start(AVFormatContext *s, int write_header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (oc->oformat->priv_class && oc->priv_data)
|
if (oc->oformat->priv_class && oc->priv_data)
|
||||||
av_opt_set(oc->priv_data, "resend_headers", "1", 0); /* mpegts specific */
|
av_opt_set(oc->priv_data, "mpegts_flags", "+resend_headers", 0);
|
||||||
|
|
||||||
if (write_header) {
|
if (write_header) {
|
||||||
if ((err = avformat_write_header(oc, NULL)) < 0)
|
if ((err = avformat_write_header(oc, NULL)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user