[FFmpeg-devel] [PATCH] gif parser
Michael Niedermayer
michaelni
Sat May 30 05:09:27 CEST 2009
On Wed, May 27, 2009 at 03:41:54PM +0200, Peter Holik wrote:
> Hi again!
>
> And the same for gif.
>
> cu Peter
> Makefile | 1
> allcodecs.c | 1
> gif_parser.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 97 insertions(+)
> d170fcf127536a3e8cf5b5abfe2cf50772154913 gif-parser.patch
> diff --git a/libavcodec/Makefile b/libavcodec/Makefile
> index 189231b..4dda4ab 100644
> --- a/libavcodec/Makefile
> +++ b/libavcodec/Makefile
> @@ -403,6 +403,7 @@ OBJS-$(CONFIG_DIRAC_PARSER) += dirac_parser.o
> OBJS-$(CONFIG_DNXHD_PARSER) += dnxhd_parser.o
> OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsub_parser.o
> OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub_parser.o
> +OBJS-$(CONFIG_GIF_PARSER) += gif_parser.o
> OBJS-$(CONFIG_H261_PARSER) += h261_parser.o
> OBJS-$(CONFIG_H263_PARSER) += h263_parser.o
> OBJS-$(CONFIG_H264_PARSER) += h264_parser.o
> diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
> index e8d5d27..361c683 100644
> --- a/libavcodec/allcodecs.c
> +++ b/libavcodec/allcodecs.c
> @@ -326,6 +326,7 @@ void avcodec_register_all(void)
> REGISTER_PARSER (DNXHD, dnxhd);
> REGISTER_PARSER (DVBSUB, dvbsub);
> REGISTER_PARSER (DVDSUB, dvdsub);
> + REGISTER_PARSER (GIF, gif);
> REGISTER_PARSER (H261, h261);
> REGISTER_PARSER (H263, h263);
> REGISTER_PARSER (H264, h264);
> diff --git a/libavcodec/gif_parser.c b/libavcodec/gif_parser.c
> new file mode 100644
> index 0000000..58a1892
> --- /dev/null
> +++ b/libavcodec/gif_parser.c
> @@ -0,0 +1,95 @@
> +/*
> + * GIF parser
> + * Copyright (c) 2009 Peter Holik
> + *
> + * 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
> + */
> +
> +/**
> + * @file libavcodec/gif_parser.c
> + * GIF parser
> + */
> +
> +#include "parser.h"
> +
> +#define GIF87A_SIG 0x474946383761
> +#define GIF89A_SIG 0x474946383961
they need ULL postfixes
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090530/7ace2fd8/attachment.pgp>
More information about the ffmpeg-devel
mailing list