fixed possible compile error in cap_ffmpeg_impl.hpp (bug #2365)
authorVadim Pisarevsky <vadim.pisarevsky@itseez.com>
Wed, 19 Sep 2012 12:48:19 +0000 (16:48 +0400)
committerVadim Pisarevsky <vadim.pisarevsky@itseez.com>
Wed, 19 Sep 2012 12:48:19 +0000 (16:48 +0400)
modules/highgui/src/cap_ffmpeg_impl.hpp

index caf2979..445a9e6 100644 (file)
@@ -140,6 +140,10 @@ extern "C" {
 #define AV_NOPTS_VALUE_ ((int64_t)AV_NOPTS_VALUE)
 #endif
 
+#ifndef AVERROR_EOF
+#define AVERROR_EOF (-MKTAG( 'E','O','F',' '))
+#endif
+
 static int get_number_of_cpus(void)
 {
 #if LIBAVFORMAT_BUILD < CALC_FFMPEG_VERSION(52, 111, 0)