Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-08 10:04:56 +0400
committerAnton Khirnov <anton@khirnov.net>2012-08-10 20:48:40 +0400
commit2ff67c909c95903240c30405b0b231ba68f5407a (patch)
tree72931b74d3665e3c6136b6f723ad70334881acdf /libavcodec/old_codec_ids.h
parent33de86db2bda850d97e04c4fd132c223c7249333 (diff)
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.h6
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 */