mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-01 21:12:53 +08:00
aptx: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
James Almer
parent
a4a73c6a9c
commit
18f61d19c2
@@ -253,7 +253,10 @@ const AVCodec ff_aptx_encoder = {
|
||||
.encode2 = aptx_encode_frame,
|
||||
.close = aptx_close,
|
||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||
#if FF_API_OLD_CHANNEL_LAYOUT
|
||||
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
|
||||
#endif
|
||||
.ch_layouts = (const AVChannelLayout[]) { AV_CHANNEL_LAYOUT_STEREO, { 0 } },
|
||||
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S32P,
|
||||
AV_SAMPLE_FMT_NONE },
|
||||
.supported_samplerates = (const int[]) {8000, 16000, 24000, 32000, 44100, 48000, 0},
|
||||
@@ -272,7 +275,10 @@ const AVCodec ff_aptx_hd_encoder = {
|
||||
.encode2 = aptx_encode_frame,
|
||||
.close = aptx_close,
|
||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||
#if FF_API_OLD_CHANNEL_LAYOUT
|
||||
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
|
||||
#endif
|
||||
.ch_layouts = (const AVChannelLayout[]) { AV_CHANNEL_LAYOUT_STEREO, { 0 } },
|
||||
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S32P,
|
||||
AV_SAMPLE_FMT_NONE },
|
||||
.supported_samplerates = (const int[]) {8000, 16000, 24000, 32000, 44100, 48000, 0},
|
||||
|
||||
Reference in New Issue
Block a user