From 4e07561141ac997756686a65549b8f9066cfc345 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 19 Sep 2012 16:48:19 +0400 Subject: [PATCH] fixed possible compile error in cap_ffmpeg_impl.hpp (bug #2365) --- modules/highgui/src/cap_ffmpeg_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index caf2979127..445a9e6208 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -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)