annotate h263.h @ 9910:d07aee233d03 libavcodec

H.264: Don't set data_partitioning for invalid NAL_DPA. Before, the decoder could interpret a corrupt frame as a NAL_DPA and NAL_DPC, and then start decoding even if decode_slice_header() returned an error. This frequently caused crashes. Fixes issue1228, issue1229, and partially issue1238.
author astrange
date Fri, 03 Jul 2009 05:52:00 +0000
parents 68e959302527
children 67a1b27648b2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
22 #ifndef AVCODEC_H263_H
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
23 #define AVCODEC_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
8596
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
28 #define CONFIG_ANY_H263_DECODER (CONFIG_H263_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
29 CONFIG_H263I_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
30 CONFIG_FLV_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
31 CONFIG_RV10_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
32 CONFIG_RV20_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
33 CONFIG_MPEG4_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
34 CONFIG_MSMPEG4_DECODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
35 CONFIG_WMV_DECODER)
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
36 #define CONFIG_ANY_H263_ENCODER (CONFIG_H263_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
37 CONFIG_H263P_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
38 CONFIG_FLV_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
39 CONFIG_RV10_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
40 CONFIG_RV20_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
41 CONFIG_MPEG4_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
42 CONFIG_MSMPEG4_ENCODER || \
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
43 CONFIG_WMV_ENCODER)
68e959302527 replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
aurel
parents: 7760
diff changeset
44 #define CONFIG_ANY_H263 (CONFIG_ANY_H263_DECODER || CONFIG_ANY_H263_ENCODER)
5277
7b3fcb7c61ce Avoid linking with h263.c functions when the relevant codecs
aurel
parents:
diff changeset
45
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
46 #endif /* AVCODEC_H263_H */