X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh263_parser.c;h=98a72d92a97321201abb0f7daedfad0650ffe4c2;hb=5d42ac7ffb5471666136402a553454caf3a3c989;hp=c289ca3cc5dfb338023c266d1ab1814d2b71f2f0;hpb=6785cae35c4b5d407eac2d06d95e7049c191d1f3;p=ffmpeg diff --git a/libavcodec/h263_parser.c b/libavcodec/h263_parser.c index c289ca3cc5d..98a72d92a97 100644 --- a/libavcodec/h263_parser.c +++ b/libavcodec/h263_parser.c @@ -2,29 +2,30 @@ * H.263 parser * Copyright (c) 2002-2004 Michael Niedermayer * - * This file is part of FFmpeg. + * This file is part of Libav. * - * FFmpeg is free software; you can redistribute it and/or + * Libav 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, + * Libav 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 + * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** - * @file h263_parser.c + * @file * H.263 parser */ #include "parser.h" +#include "h263_parser.h" int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){ int vop_found, i; @@ -77,15 +78,14 @@ static int h263_parse(AVCodecParserContext *s, return buf_size; } - *poutbuf = (uint8_t *)buf; + *poutbuf = buf; *poutbuf_size = buf_size; return next; } -AVCodecParser h263_parser = { - { CODEC_ID_H263 }, - sizeof(ParseContext), - NULL, - h263_parse, - ff_parse_close, +AVCodecParser ff_h263_parser = { + .codec_ids = { CODEC_ID_H263 }, + .priv_data_size = sizeof(ParseContext), + .parser_parse = h263_parse, + .parser_close = ff_parse_close, };