segment: use mpegts_flags instead of the deprecated resend_headers option
authorMika Raento <mika.raento@elisa.fi>
Mon, 1 Sep 2014 17:05:44 +0000 (20:05 +0300)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Sep 2014 10:31:04 +0000 (12:31 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/segment.c

index 7919a39..98301dd 100644 (file)
@@ -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)