[FFmpeg-devel] [PATCH 2/3] move the code to be used by the IEC 61937 demuxer into common files
Michael Niedermayer
michaelni
Tue Nov 9 04:31:25 CET 2010
On Sat, Nov 06, 2010 at 02:27:25PM +0200, Anssi Hannula wrote:
> ---
> libavformat/Makefile | 2 +-
> libavformat/spdif.c | 42 +++++++++++++++++++++++++++++++++++
> libavformat/spdif.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
> libavformat/spdifenc.c | 56 ++--------------------------------------------
> 4 files changed, 103 insertions(+), 54 deletions(-)
> create mode 100644 libavformat/spdif.c
> create mode 100644 libavformat/spdif.h
>
> diff --git a/libavformat/Makefile b/libavformat/Makefile
> index 1519689..a412aba 100644
> --- a/libavformat/Makefile
> +++ b/libavformat/Makefile
> @@ -256,7 +256,7 @@ OBJS-$(CONFIG_SMACKER_DEMUXER) += smacker.o
> OBJS-$(CONFIG_SOL_DEMUXER) += sol.o pcm.o
> OBJS-$(CONFIG_SOX_DEMUXER) += soxdec.o pcm.o
> OBJS-$(CONFIG_SOX_MUXER) += soxenc.o
> -OBJS-$(CONFIG_SPDIF_MUXER) += spdifenc.o
> +OBJS-$(CONFIG_SPDIF_MUXER) += spdif.o spdifenc.o
> OBJS-$(CONFIG_SRT_DEMUXER) += srtdec.o
> OBJS-$(CONFIG_SRT_MUXER) += rawenc.o
> OBJS-$(CONFIG_STR_DEMUXER) += psxstr.o
> diff --git a/libavformat/spdif.c b/libavformat/spdif.c
> new file mode 100644
> index 0000000..0af5e78
> --- /dev/null
> +++ b/libavformat/spdif.c
> @@ -0,0 +1,42 @@
> +/*
> + * IEC 61937 common code
> + * Copyright (c) 2009 Bartlomiej Wolowiec
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +#include "spdif.h"
> +#include "libavutil/bswap.h"
> +
> +//TODO move to DSP
> +void spdif_bswap_buf16(uint16_t *dst, const uint16_t *src, int w)
missing ff_ prefix
exept that lgtm
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101109/900c0714/attachment.pgp>
More information about the ffmpeg-devel
mailing list