mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-28 19:16:48 +08:00
fix build error for ffmpeg 0.9 and 0.10. no swr_get_delay
This commit is contained in:
@@ -47,7 +47,8 @@ extern "C"
|
||||
#ifndef LIBSWRESAMPLE_VERSION_INT //ffmpeg 0.9, swr 0.5
|
||||
#define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, LIBSWRESAMPLE_VERSION_MINOR, LIBSWRESAMPLE_VERSION_MICRO)
|
||||
#endif //LIBSWRESAMPLE_VERSION_INT
|
||||
#define HAVE_SWR_GET_DELAY (LIBSWRESAMPLE_VERSION_INT > AV_VERSION_INT(0, 5, 0))
|
||||
//ffmpeg >= 0.11.x. swr0.6.100: ffmpeg-0.10.x
|
||||
#define HAVE_SWR_GET_DELAY (LIBSWRESAMPLE_VERSION_INT > AV_VERSION_INT(0, 6, 100))
|
||||
#endif //QTAV_HAVE(SWRESAMPLE)
|
||||
#if QTAV_HAVE(AVRESAMPLE)
|
||||
#include <libavresample/avresample.h>
|
||||
|
||||
Reference in New Issue
Block a user