Closed ImNtReal closed 8 years ago
Well, that was simple enough to fix. I used this patch:
diff -Naur qtcam/src/videoencoder.h-orig qtcam/src/videoencoder.h
--- qtcam/src/videoencoder.h-orig 2016-03-15 10:01:54.349734386 -0400
+++ qtcam/src/videoencoder.h 2016-03-15 10:04:45.037886363 -0400
@@ -30,14 +30,14 @@
LIBAVCODEC_VERSION_MINOR >= minor))
-//#if !LIBAVCODEC_VER_AT_LEAST(54,25)
-// #define AV_CODEC_ID_NONE CODEC_ID_NONE
-// #define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG
-// #define AV_CODEC_ID_RAWVIDEO CODEC_ID_RAWVIDEO
-// #define AV_CODEC_ID_H264 CODEC_ID_H264
-// #define AV_CODEC_ID_VP8 CODEC_ID_VP8
-// #define AVCodecID CodecID
-//#endif
+#if !LIBAVCODEC_VER_AT_LEAST(54,25)
+ #define AV_CODEC_ID_NONE CODEC_ID_NONE
+ #define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG
+ #define AV_CODEC_ID_RAWVIDEO CODEC_ID_RAWVIDEO
+ #define AV_CODEC_ID_H264 CODEC_ID_H264
+ #define AV_CODEC_ID_VP8 CODEC_ID_VP8
+ #define AVCodecID CodecID
+#endif
extern "C" {
#include "libavcodec/avcodec.h"
I'm trying to build the current revision on Arch Linux, and it's failing with: