X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh263_parser.c;h=71e047a77e661b12610a7cdc6250a0354ebb4c6c;hb=04698d528cac334b6b5cabd3384f01406a766285;hp=53a26c05cd690061132e4e19fb18a2c5c8680f77;hpb=e336139f0c609c662d129a0a8a9acf91c1083e3d;p=ffmpeg diff --git a/libavcodec/h263_parser.c b/libavcodec/h263_parser.c index 53a26c05cd6..71e047a77e6 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; @@ -71,21 +72,20 @@ static int h263_parse(AVCodecParserContext *s, next= ff_h263_find_frame_end(pc, buf, buf_size); - if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { + if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) { *poutbuf = NULL; *poutbuf_size = 0; 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 = { AV_CODEC_ID_H263 }, + .priv_data_size = sizeof(ParseContext), + .parser_parse = h263_parse, + .parser_close = ff_parse_close, };