[FFmpeg-devel] [PATCH] avformat/rawenc: perform stream checks for mp2 muxer

Gyan Doshi ffmpeg at gyani.pro
Sun Apr 11 08:27:36 EEST 2021


---
 libavformat/rawenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index caec297f4a..0802d9a831 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -433,6 +433,7 @@ AVOutputFormat ff_mp2_muxer = {
     .extensions        = "mp2,m2a,mpa",
     .audio_codec       = AV_CODEC_ID_MP2,
     .video_codec       = AV_CODEC_ID_NONE,
+    .init              = force_one_stream,
     .write_packet      = ff_raw_write_packet,
     .flags             = AVFMT_NOTIMESTAMPS,
 };
-- 
2.30.1



More information about the ffmpeg-devel mailing list