Mercurial > libavcodec.hg
annotate mpeg12.h @ 6016:5455f4e43948 libavcodec
Make h264 decoder conform to requirements of mpegvideo's MPV_frame_start.
Namely, that it should not be called if you are starting to decode a B
frame without any reference pictures.
Prevents an endless allocation cycle in MPV_frame_start that will end in
picture buffer overflow and abort.
Fixes roundup issue 216.
author | heydowns |
---|---|
date | Fri, 14 Dec 2007 05:37:23 +0000 |
parents | 1d83e9c34641 |
children | 0bd920dcb7a5 |
rev | line source |
---|---|
5218 | 1 /* |
2 * MPEG1/2 common code | |
3 * Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org> | |
4 * | |
5 * This file is part of FFmpeg. | |
6 * | |
7 * FFmpeg is free software; you can redistribute it and/or | |
8 * modify it under the terms of the GNU Lesser General Public | |
9 * License as published by the Free Software Foundation; either | |
10 * version 2.1 of the License, or (at your option) any later version. | |
11 * | |
12 * FFmpeg is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Lesser General Public License for more details. | |
16 * | |
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 | |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 */ | |
21 | |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5218
diff
changeset
|
22 #ifndef FFMPEG_MPEG12_H |
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5218
diff
changeset
|
23 #define FFMPEG_MPEG12_H |
5218 | 24 |
25 #include "mpegvideo.h" | |
26 | |
27 extern uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; | |
28 | |
29 void ff_mpeg12_common_init(MpegEncContext *s); | |
30 | |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5218
diff
changeset
|
31 #endif /* FFMPEG_MPEG12_H */ |