[FFmpeg-devel] [PATCH] lavf/segment: unbreak behavior for segment muxer
Stefano Sabatini
stefasab at gmail.com
Sat Nov 17 17:43:29 CET 2012
The segment muxer presuppones the use of AVFMT_GLOBALHEADER, ssegment
should be use instead.
Regression introduced when merging
0826d8513d14f54da0b519360813327d5836b7fc.
---
libavformat/segment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 75dbd35..77c40da 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -550,7 +550,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,
--
1.7.9.5
More information about the ffmpeg-devel
mailing list