Actions
Bug #872
closedAVMEDIA_TYPE_* defines don't work this way
Description
Doing something like #ifndef AVMEDIA_TYPE_AUDIO does not work. The preprocessor can not check if an enum value is defined (at least not with gcc >= 4.4.5).
I suggest doing something like:
#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(50, 14, 0) #define AVMEDIA_TYPE_AUDIO CODEC_TYPE_AUDIO #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO #define AVMEDIA_TYPE_UNKNOWN CODEC_TYPE_UNKNOWN #endif
(Haven't tested this with older ffmpegs yet.)
Files
Updated by etobi almost 13 years ago
- File 0001-Improved-AVMEDIA_TYPE_-vs-CODEC_TYPE_-handling.patch 0001-Improved-AVMEDIA_TYPE_-vs-CODEC_TYPE_-handling.patch added
PS: Patch atached
Updated by Joe_D almost 13 years ago
- Status changed from New to Closed
- Assignee set to Joe_D
- Target version set to 0.1.3
added to GIT, Thanks
Actions