Ask Your Question

Revision history [back]

Modify the 1445th line:

avformat_free_context(oc);

to:

#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(53, 2, 0)
    avformat_free_context(oc);
#else
    av_free_format_context(oc);
#endif

Or, try to upgrade ffmpeg up to 0.10.11

Modify the 1445th line:line of opencv-2.4.9/modules/highgui/src/cap_ffmpeg_impl.hpp:

avformat_free_context(oc);

to:

#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(53, 2, 0)
    avformat_free_context(oc);
#else
    av_free_format_context(oc);
#endif

Or, try to upgrade ffmpeg up to 0.10.11

Modify the 1445th line of opencv-2.4.9/modules/highgui/src/cap_ffmpeg_impl.hpp:

avformat_free_context(oc);

to:

#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(53, 2, 0)
    avformat_free_context(oc);
#else
    av_free_format_context(oc);
#endif

Or, try to upgrade ffmpeg up to >= 0.10.11