diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-08-08 08:04:56 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-08-10 18:48:40 +0200 |
commit | 2ff67c909c95903240c30405b0b231ba68f5407a (patch) | |
tree | 72931b74d3665e3c6136b6f723ad70334881acdf /libavcodec/old_codec_ids.h | |
parent | 33de86db2bda850d97e04c4fd132c223c7249333 (diff) | |
download | ffmpeg-2ff67c909c95903240c30405b0b231ba68f5407a.tar.gz |
lavc: fix mixing CODEC_ID/AV_CODEC_ID in C++ code.
C++ does not allow to mix different enums, so e.g. code comparing
ACodecID with CodecID would fail to compile with gcc.
This very evil hack should fix this problem.
Diffstat (limited to 'libavcodec/old_codec_ids.h')
-rw-r--r-- | libavcodec/old_codec_ids.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/old_codec_ids.h b/libavcodec/old_codec_ids.h index 95b6b737b0..2b72e38d20 100644 --- a/libavcodec/old_codec_ids.h +++ b/libavcodec/old_codec_ids.h @@ -19,8 +19,6 @@ #ifndef AVCODEC_OLD_CODEC_IDS_H #define AVCODEC_OLD_CODEC_IDS_H -#include "libavutil/attributes.h" - /* * This header exists to prevent new codec IDs from being accidentally added to * the deprecated list. @@ -29,8 +27,7 @@ * Do not add new items to this list. Use the AVCodecID enum instead. */ -enum CodecID { - CODEC_ID_NONE, + CODEC_ID_NONE = AV_CODEC_ID_NONE, /* video codecs */ CODEC_ID_MPEG1VIDEO, @@ -365,6 +362,5 @@ enum CodecID { CODEC_ID_MPEG4SYSTEMS = 0x20001, /**< _FAKE_ codec to indicate a MPEG-4 Systems * stream (only used by libavformat) */ CODEC_ID_FFMETADATA = 0x21000, ///< Dummy codec for streams containing only metadata information. -} attribute_deprecated; #endif /* AVCODEC_OLD_CODEC_IDS_H */ |