File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include < condition_variable>
1010
1111extern " C" {
12- #include < libavcodec/avcodec.h>
13- #include < libavformat/avformat.h>
14- #include < libavutil/channel_layout.h>
15- #include < libavutil/opt.h>
16- #include < libavutil/samplefmt.h>
17- #include < libswresample/swresample.h>
12+ #include < libavcodec/avcodec.h>
1813}
1914
2015struct XMAPLAYBACKINIT {
@@ -26,11 +21,11 @@ struct XMAPLAYBACKINIT {
2621
2722constexpr uint32_t kBytesPerPacket = 2048 ;
2823constexpr uint32_t kBytesPerPacketHeader = 4 ;
29- constexpr uint32_t kBytesPerPacketData =
30- kBytesPerPacket - kBytesPerPacketHeader ;
24+ constexpr uint32_t kBytesPerPacketData = kBytesPerPacket - kBytesPerPacketHeader ;
3125constexpr uint32_t kBytesPerSample = 2 ;
3226constexpr uint32_t kSamplesPerFrame = 512 ;
3327constexpr uint32_t kBytesPerFrameChannel = kSamplesPerFrame * kBytesPerSample ;
28+
3429struct XmaPlayback {
3530 uint32_t sampleRate;
3631 uint32_t outputBufferSize;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ if (NOT WIN32)
3030
3131 add_custom_command (
3232 OUTPUT ${FFMPEG_PATH} /config.h
33- COMMAND ./configure --disable-everything --disable-programs --disable- all --disable-x86asm --disable- autodetect --disable-network --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-decoder='xmaframes'
33+ COMMAND ./configure --disable-all --disable-autodetect --disable-network --enable-avcodec --enable-decoder='xmaframes'
3434 COMMENT "Configuring FFmpeg..."
3535 WORKING_DIRECTORY ${FFMPEG_PATH}
3636 )
You can’t perform that action at this time.
0 commit comments