Commit f8d93af0989aae60241228bc4123bb09d18b0628

Authored by bhklein
1 parent dcb011ed

fix for older versions of libav

openbr/plugins/gallery/keyframes.cpp
... ... @@ -26,6 +26,12 @@ extern "C"
26 26 #include <libswscale/swscale.h>
27 27 }
28 28  
  29 +// http://stackoverflow.com/questions/24057248/ffmpeg-undefined-references-to-av-frame-alloc
  30 +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
  31 +#define av_frame_alloc avcodec_alloc_frame
  32 +#define av_frame_free avcodec_free_frame
  33 +#endif
  34 +
29 35 using namespace cv;
30 36  
31 37 namespace br
... ...