Commit 413fa76f authored by Mika Raento's avatar Mika Raento Committed by Michael Niedermayer

segment: use mpegts_flags instead of the deprecated resend_headers option

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0ffe32cf
......@@ -222,7 +222,7 @@ static int segment_start(AVFormatContext *s, int write_header)
}
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 ((err = avformat_write_header(oc, NULL)) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment