make PixelFormat a typedef, fixes ffmpeg 1.1 compat

This commit is contained in:
Devin J. Pohly
2013-02-20 15:29:24 -05:00
parent f2a7a4c5cc
commit 4537a66481
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@
extern "C"
{
#include <libavcodec/avcodec.h>
#undef PixelFormat
typedef AVPixelFormat PixelFormat;
}
#endif
@@ -16,6 +16,8 @@ namespace avcodec
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/pixdesc.h>
#undef PixelFormat
typedef AVPixelFormat PixelFormat;
}
};