[FFmpeg-devel] [PATCH 1/3] lavf: identify MP1 and MP2 as distinct containers from MP3

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Mar 18 17:51:49 EET 2017


2017-03-18 10:38 GMT+01:00 Rodger Combs <rodger.combs at gmail.com>:
> This allows us to report the correct codec ID here

What does this fix?

> --- a/libavformat/rawenc.c
> +++ b/libavformat/rawenc.c
> @@ -337,6 +337,19 @@ AVOutputFormat ff_mlp_muxer = {
>  };
>  #endif
>
> +#if CONFIG_MP1_MUXER
> +AVOutputFormat ff_mp1_muxer = {
> +    .name              = "mp1",
> +    .long_name         = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
> +    .mime_type         = "audio/mpeg",
> +    .extensions        = "mp1,m1a",
> +    .audio_codec       = AV_CODEC_ID_MP1,
> +    .video_codec       = AV_CODEC_ID_NONE,
> +    .write_packet      = ff_raw_write_packet,
> +    .flags             = AVFMT_NOTIMESTAMPS,
> +};
> +#endif

This looks ok but unrelated, please split.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list