Mercurial > libavcodec.hg
annotate h263.h @ 6033:bd7600c7a061 libavcodec
Fix crash in PCM decoder when number of channels is not set.
Patch by "wg": video06 malloc de
See Issue298
author | benoit |
---|---|
date | Mon, 17 Dec 2007 10:41:47 +0000 |
parents | 1d83e9c34641 |
children | c4a4495715dd |
rev | line source |
---|---|
5277
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
1 /* |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
2 * H263/MPEG4 backend for ffmpeg encoder and decoder |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
3 * copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org> |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
4 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
5 * This file is part of FFmpeg. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
6 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
7 * FFmpeg is free software; you can redistribute it and/or |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
8 * modify it under the terms of the GNU Lesser General Public |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
9 * License as published by the Free Software Foundation; either |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
10 * version 2.1 of the License, or (at your option) any later version. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
11 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
12 * FFmpeg is distributed in the hope that it will be useful, |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
15 * Lesser General Public License for more details. |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
16 * |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
17 * You should have received a copy of the GNU Lesser General Public |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
18 * License along with FFmpeg; if not, write to the Free Software |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
20 */ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
21 |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5277
diff
changeset
|
22 #ifndef FFMPEG_H263_H |
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5277
diff
changeset
|
23 #define FFMPEG_H263_H |
5277
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
24 |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
25 #include "config.h" |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
26 #include "msmpeg4.h" |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
27 |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
28 #define ENABLE_ANY_H263_DECODER (ENABLE_H263_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
29 ENABLE_H263I_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
30 ENABLE_FLV_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
31 ENABLE_RV10_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
32 ENABLE_RV20_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
33 ENABLE_MPEG4_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
34 ENABLE_MSMPEG4_DECODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
35 ENABLE_WMV_DECODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
36 #define ENABLE_ANY_H263_ENCODER (ENABLE_H263_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
37 ENABLE_H263P_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
38 ENABLE_FLV_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
39 ENABLE_RV10_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
40 ENABLE_RV20_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
41 ENABLE_MPEG4_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
42 ENABLE_MSMPEG4_ENCODER || \ |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
43 ENABLE_WMV_ENCODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
44 #define ENABLE_ANY_H263 (ENABLE_ANY_H263_DECODER || ENABLE_ANY_H263_ENCODER) |
7b3fcb7c61ce
Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff
changeset
|
45 |
5830
1d83e9c34641
Add FFMPEG_ prefix to all multiple inclusion guards.
diego
parents:
5277
diff
changeset
|
46 #endif /* FFMPEG_H263_H */ |