[FFmpeg-devel] [PATCH 6/9] sbc: add raw muxer for SBC
Rostislav Pehlivanov
atomnuker at gmail.com
Thu Feb 22 18:48:13 EET 2018
On 21 February 2018 at 22:37, Aurelien Jacobs <aurel at gnuage.org> wrote:
> ---
> doc/general.texi | 2 +-
> libavformat/Makefile | 1 +
> libavformat/allformats.c | 1 +
> libavformat/rawenc.c | 13 +++++++++++++
> 4 files changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/doc/general.texi b/doc/general.texi
> index bf62288f64..118bfd8bd9 100644
> --- a/doc/general.texi
> +++ b/doc/general.texi
> @@ -479,7 +479,7 @@ library:
> @item raw NULL @tab X @tab
> @item raw video @tab X @tab X
> @item raw id RoQ @tab X @tab
> - at item raw SBC @tab @tab X
> + at item raw SBC @tab X @tab X
> @item raw Shorten @tab @tab X
> @item raw TAK @tab @tab X
> @item raw TrueHD @tab X @tab X
> diff --git a/libavformat/Makefile b/libavformat/Makefile
> index 1efa3a54f8..8f3272efdf 100644
> --- a/libavformat/Makefile
> +++ b/libavformat/Makefile
> @@ -449,6 +449,7 @@ OBJS-$(CONFIG_SAMI_DEMUXER) += samidec.o
> subtitles.o
> OBJS-$(CONFIG_SAP_DEMUXER) += sapdec.o
> OBJS-$(CONFIG_SAP_MUXER) += sapenc.o
> OBJS-$(CONFIG_SBC_DEMUXER) += sbcdec.o rawdec.o
> +OBJS-$(CONFIG_SBC_MUXER) += rawenc.o
> OBJS-$(CONFIG_SBG_DEMUXER) += sbgdec.o
> OBJS-$(CONFIG_SCC_DEMUXER) += sccdec.o subtitles.o
> OBJS-$(CONFIG_SCC_MUXER) += sccenc.o subtitles.o
> diff --git a/libavformat/allformats.c b/libavformat/allformats.c
> index 04164607ce..05894094a7 100644
> --- a/libavformat/allformats.c
> +++ b/libavformat/allformats.c
> @@ -351,6 +351,7 @@ extern AVInputFormat ff_sami_demuxer;
> extern AVInputFormat ff_sap_demuxer;
> extern AVOutputFormat ff_sap_muxer;
> extern AVInputFormat ff_sbc_demuxer;
> +extern AVOutputFormat ff_sbc_muxer;
> extern AVInputFormat ff_sbg_demuxer;
> extern AVInputFormat ff_scc_demuxer;
> extern AVOutputFormat ff_scc_muxer;
> diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
> index dcf880d17e..caf4607dde 100644
> --- a/libavformat/rawenc.c
> +++ b/libavformat/rawenc.c
> @@ -439,6 +439,19 @@ AVOutputFormat ff_rawvideo_muxer = {
> };
> #endif
>
> +#if CONFIG_SBC_MUXER
> +AVOutputFormat ff_sbc_muxer = {
> + .name = "sbc",
> + .long_name = NULL_IF_CONFIG_SMALL("raw SBC"),
> + .mime_type = "audio/x-sbc",
> + .extensions = "sbc,msbc",
> + .audio_codec = AV_CODEC_ID_SBC,
> + .write_header = force_one_stream,
> + .write_packet = ff_raw_write_packet,
> + .flags = AVFMT_NOTIMESTAMPS,
> +};
> +#endif
> +
> #if CONFIG_TRUEHD_MUXER
> AVOutputFormat ff_truehd_muxer = {
> .name = "truehd",
> --
> 2.16.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
Looks good
More information about the ffmpeg-devel
mailing list