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

Gyan Doshi git at videolan.org
Sun Apr 11 14:16:35 EEST 2021


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Sun Apr 11 11:13:57 2021 +0530| [309e3cc15c87234861fe127614e09023f3867523] | committer: Gyan Doshi

avformat/rawenc: perform stream checks for mp2 muxer

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

 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,
 };



More information about the ffmpeg-cvslog mailing list