summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/segment.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 53b8a239b5..bdb5254de4 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -96,6 +96,9 @@ static int segment_start(AVFormatContext *s, int write_header)
&s->interrupt_callback, NULL)) < 0)
return err;
+ if (oc->oformat->priv_class && oc->priv_data)
+ av_opt_set(oc->priv_data, "resend_headers", "1", 0);
+
if (write_header) {
if ((err = avformat_write_header(oc, NULL)) < 0)
return err;