mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 05:23:14 +08:00
lavf: use conditional notation for default codec in muxer declarations.
This removes the use of macro nesting in these code constructs, which makes it easier to parse in pre-processors.
This commit is contained in:
@@ -645,11 +645,7 @@ AVOutputFormat ff_avi_muxer = {
|
||||
.mime_type = "video/x-msvideo",
|
||||
.extensions = "avi",
|
||||
.priv_data_size = sizeof(AVIContext),
|
||||
#if CONFIG_LIBMP3LAME_ENCODER
|
||||
.audio_codec = CODEC_ID_MP3,
|
||||
#else
|
||||
.audio_codec = CODEC_ID_AC3,
|
||||
#endif
|
||||
.audio_codec = CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_AC3,
|
||||
.video_codec = CODEC_ID_MPEG4,
|
||||
.write_header = avi_write_header,
|
||||
.write_packet = avi_write_packet,
|
||||
|
||||
Reference in New Issue
Block a user