From 413fa76f61f2d4a07dd52e5e70385affffa99b42 Mon Sep 17 00:00:00 2001 From: Mika Raento Date: Mon, 1 Sep 2014 20:05:44 +0300 Subject: [PATCH] segment: use mpegts_flags instead of the deprecated resend_headers option Signed-off-by: Michael Niedermayer --- libavformat/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 7919a39187..98301dd7bc 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -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)