1
0

obs-ffmpeg-compat.h 535 B

1234567891011
  1. #pragma once
  2. #include <libavcodec/avcodec.h>
  3. /* LIBAVCODEC_VERSION_CHECK checks for the right version of libav and FFmpeg
  4. * a is the major version
  5. * b and c the minor and micro versions of libav
  6. * d and e the minor and micro versions of FFmpeg */
  7. #define LIBAVCODEC_VERSION_CHECK(a, b, c, d, e) \
  8. ((LIBAVCODEC_VERSION_MICRO < 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(a, b, c)) || \
  9. (LIBAVCODEC_VERSION_MICRO >= 100 && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(a, d, e)))