summaryrefslogtreecommitdiff
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-05 16:30:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-05 16:30:34 +0200
commitb26cbf75bc80a972883c617b884f7616db5cee99 (patch)
treed886621552ba2fde6c43841f1c9816e27610a2a1 /libavformat/segment.c
parent50c555e3966371f3db6ab4aeb19404094e351e4e (diff)
parentf7b240434c015056bc6319ddbdb8483757cc13e2 (diff)
Merge commit 'f7b240434c015056bc6319ddbdb8483757cc13e2'
* commit 'f7b240434c015056bc6319ddbdb8483757cc13e2': segment: Set the resend_headers flag for each segment Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 23d68fde70..2557f872e8 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -144,6 +144,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;