diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-09-01 10:02:39 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-09-02 18:02:22 +0200 |
commit | 2bb9d2be5e2e1d971e5b80358098f2a7fce06e0e (patch) | |
tree | 5b07c68d5253e6a480246507963444d8a2028f7b /libavcodec | |
parent | 61c2c9ef8e66920c8ba308e8fa9f36ae602f8245 (diff) | |
download | ffmpeg-2bb9d2be5e2e1d971e5b80358098f2a7fce06e0e.tar.gz |
avcodec/mlpenc: add support for 24bit encoding
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mlpenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index 37052d9e38..443cb41cf5 100644 --- a/libavcodec/mlpenc.c +++ b/libavcodec/mlpenc.c @@ -2390,7 +2390,7 @@ const AVCodec ff_mlp_encoder = { .encode2 = mlp_encode_frame, .close = mlp_encode_close, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_EXPERIMENTAL, - .sample_fmts = (const enum AVSampleFormat[]) {AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE}, + .sample_fmts = (const enum AVSampleFormat[]) {AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE}, .supported_samplerates = (const int[]) {44100, 48000, 88200, 96000, 176400, 192000, 0}, .channel_layouts = ff_mlp_channel_layouts, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, @@ -2407,7 +2407,7 @@ const AVCodec ff_truehd_encoder = { .encode2 = mlp_encode_frame, .close = mlp_encode_close, .capabilities = AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_EXPERIMENTAL, - .sample_fmts = (const enum AVSampleFormat[]) {AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE}, + .sample_fmts = (const enum AVSampleFormat[]) {AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE}, .supported_samplerates = (const int[]) {44100, 48000, 88200, 96000, 176400, 192000, 0}, .channel_layouts = (const uint64_t[]) {AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_5POINT0_BACK, AV_CH_LAYOUT_5POINT1_BACK, 0}, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, |