lavf/segment: unbreak behavior for segment muxer
authorStefano Sabatini <stefasab@gmail.com>
Sat, 17 Nov 2012 16:12:43 +0000 (17:12 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 20 Nov 2012 21:48:28 +0000 (22:48 +0100)
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.

libavformat/segment.c

index c3681d4..0dd9faf 100644 (file)
@@ -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,