[FFmpeg-cvslog] segment: use mpegts_flags instead of the deprecated resend_headers option

Mika Raento git at videolan.org
Tue Sep 2 12:37:44 CEST 2014


ffmpeg | branch: master | Mika Raento <mika.raento at elisa.fi> | Mon Sep  1 20:05:44 2014 +0300| [413fa76f61f2d4a07dd52e5e70385affffa99b42] | committer: Michael Niedermayer

segment: use mpegts_flags instead of the deprecated resend_headers option

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=413fa76f61f2d4a07dd52e5e70385affffa99b42
---

 libavformat/segment.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 7919a39..98301dd 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)



More information about the ffmpeg-cvslog mailing list