[FFmpeg-devel] [PATCH]lavf/rawenc: Force one stream for hevc and m4v
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Sep 26 10:47:53 CEST 2015
Hi!
Attached patch forces one stream for the output formats hevc
and (raw) m4v.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index d65c7c7..7a1a3d0 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -241,6 +241,7 @@ AVOutputFormat ff_hevc_muxer = {
.extensions = "hevc",
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_HEVC,
+ .write_header = force_one_stream,
.write_packet = ff_raw_write_packet,
.flags = AVFMT_NOTIMESTAMPS,
};
@@ -253,6 +254,7 @@ AVOutputFormat ff_m4v_muxer = {
.extensions = "m4v",
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_MPEG4,
+ .write_header = force_one_stream,
.write_packet = ff_raw_write_packet,
.flags = AVFMT_NOTIMESTAMPS,
};
More information about the ffmpeg-devel
mailing list