[FFmpeg-cvslog] lavf/segment: unbreak behavior for segment muxer

Stefano Sabatini git at videolan.org
Tue Nov 20 22:56:36 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Nov 17 17:12:43 2012 +0100| [2b31aa88955adcc392ace1f8e026f4c820fbd66b] | committer: Stefano Sabatini

lavf/segment: unbreak behavior for segment muxer

The segment muxer presumes the use of AVFMT_GLOBALHEADER, ssegment should
be use in case of formats which requires no global headers.

Regression introduced when merging
0826d8513d14f54da0b519360813327d5836b7fc.

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

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

diff --git a/libavformat/segment.c b/libavformat/segment.c
index c3681d4..0dd9faf 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -561,7 +561,7 @@ AVOutputFormat ff_segment_muxer = {
     .name           = "segment",
     .long_name      = NULL_IF_CONFIG_SMALL("segment"),
     .priv_data_size = sizeof(SegmentContext),
-    .flags          = AVFMT_NOFILE,
+    .flags          = AVFMT_NOFILE|AVFMT_GLOBALHEADER,
     .write_header   = seg_write_header,
     .write_packet   = seg_write_packet,
     .write_trailer  = seg_write_trailer,



More information about the ffmpeg-cvslog mailing list