[FFmpeg-devel] [PATCH 2/7] vp9: split packet parsing into an AVParser.

Clément Bœsch u at pkh.me
Tue Nov 26 10:18:39 CET 2013


On Mon, Nov 25, 2013 at 09:44:45PM -0500, Ronald S. Bultje wrote:
> ---
>  libavcodec/Makefile     |   1 +
>  libavcodec/allcodecs.c  |   1 +
>  libavcodec/vp9.c        |  57 ++------------------------
>  libavcodec/vp9_parser.c | 105 ++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 111 insertions(+), 53 deletions(-)
>  create mode 100644 libavcodec/vp9_parser.c
> 
[...]
>  static void vp9_decode_flush(AVCodecContext *ctx)
>  {
>      VP9Context *s = ctx->priv_data;
> @@ -3559,7 +3510,7 @@ AVCodec ff_vp9_decoder = {
>    .priv_data_size        = sizeof(VP9Context),
>    .init                  = vp9_decode_init,
>    .close                 = vp9_decode_free,
> -  .decode                = vp9_decode_packet,
>    .capabilities          = CODEC_CAP_DR1,
>    .flush                 = vp9_decode_flush,
> +    .decode                = vp9_decode_frame,

Weird indent

>  };
> diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
> new file mode 100644
> index 0000000..3441a4c
> --- /dev/null
> +++ b/libavcodec/vp9_parser.c
> @@ -0,0 +1,105 @@
> +/*
> + * Copyright (C) 2008 Michael Niedermayer
> + *

I'm assuming this was copied from libavcodec/vp8_parser.c, but it seems
there is actually more code from you that Michael in that file. Maybe add
yourself?

> + * 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
> + */
> +
[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131126/da32ded4/attachment.asc>


More information about the ffmpeg-devel mailing list