OLD | NEW |
1 /* | 1 /* |
2 * H.263 parser | 2 * H.263 parser |
3 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 3 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
11 * | 11 * |
12 * FFmpeg is distributed in the hope that it will be useful, | 12 * FFmpeg is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 /** | 22 /** |
23 * @file libavcodec/h263_parser.c | 23 * @file libavcodec/h263_parser.c |
24 * H.263 parser | 24 * H.263 parser |
25 */ | 25 */ |
26 | 26 |
27 #include "parser.h" | 27 #include "parser.h" |
| 28 #include "h263_parser.h" |
28 | 29 |
29 int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){ | 30 int ff_h263_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){ |
30 int vop_found, i; | 31 int vop_found, i; |
31 uint32_t state; | 32 uint32_t state; |
32 | 33 |
33 vop_found= pc->frame_start_found; | 34 vop_found= pc->frame_start_found; |
34 state= pc->state; | 35 state= pc->state; |
35 | 36 |
36 i=0; | 37 i=0; |
37 if(!vop_found){ | 38 if(!vop_found){ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return next; | 83 return next; |
83 } | 84 } |
84 | 85 |
85 AVCodecParser h263_parser = { | 86 AVCodecParser h263_parser = { |
86 { CODEC_ID_H263 }, | 87 { CODEC_ID_H263 }, |
87 sizeof(ParseContext), | 88 sizeof(ParseContext), |
88 NULL, | 89 NULL, |
89 h263_parse, | 90 h263_parse, |
90 ff_parse_close, | 91 ff_parse_close, |
91 }; | 92 }; |
OLD | NEW |