avformat/rawenc: perform stream checks for mp2 muxer

This commit is contained in:
Gyan Doshi 2021-04-11 10:55:57 +05:30
parent 5945288818
commit 309e3cc15c
1 changed files with 1 additions and 0 deletions

View File

@ -433,6 +433,7 @@ AVOutputFormat ff_mp2_muxer = {
.extensions = "mp2,m2a,mpa", .extensions = "mp2,m2a,mpa",
.audio_codec = AV_CODEC_ID_MP2, .audio_codec = AV_CODEC_ID_MP2,
.video_codec = AV_CODEC_ID_NONE, .video_codec = AV_CODEC_ID_NONE,
.init = force_one_stream,
.write_packet = ff_raw_write_packet, .write_packet = ff_raw_write_packet,
.flags = AVFMT_NOTIMESTAMPS, .flags = AVFMT_NOTIMESTAMPS,
}; };