Commit b7786ff2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Avcodec: create replacements for older versions of lavc

Methods avcodec_alloc_context3, avcodec_open2 and error_recognition
member
parent adda5957
......@@ -471,6 +471,12 @@ enum {
#endif /* LIBAVCODEC_VERSION < 54.25 */
#if LIBAVCODEC_VERSION_MAJOR < 54
# define avcodec_alloc_context3(a) avcodec_alloc_context()
# define avcodec_open2(a, b, c) avcodec_open(a, b)
# define err_recognition error_recognition
#endif
#endif /* HAVE_LIBAVCODEC_AVCODEC_H */
#ifdef HAVE_LIBAVUTIL_AVUTIL_H
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment