mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-23 19:17:46 -05:00
ffmpeg/libav conditions for CodecID and AVCODEC_MAX_AUDIO_FRAME_SIZE (thanks @freultwah)
This commit is contained in:
@@ -55,7 +55,11 @@
|
||||
#include "transcode.h"
|
||||
|
||||
|
||||
#define XCODE_BUFFER_SIZE ((AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2)
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 56 || (LIBAVCODEC_VERSION_MAJOR == 55 && LIBAVCODEC_VERSION_MINOR >= 18)
|
||||
# define XCODE_BUFFER_SIZE ((192000 * 3) / 2)
|
||||
#else
|
||||
# define XCODE_BUFFER_SIZE ((AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2)
|
||||
#endif
|
||||
|
||||
|
||||
struct transcode_ctx {
|
||||
|
||||
Reference in New Issue
Block a user