diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-10-11 19:24:35 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-12-26 21:15:36 +0100 |
commit | 909cfdc2059a53ffb55af3b9e0aadcaacae4a339 (patch) | |
tree | 274d6543dd851195daa27f7536978d27f97710df /libavcodec/flac.c | |
parent | eeb280f3518a8d7fc2e45f06ac7748f42d8a0000 (diff) |
libavcodec/flacdec: Implement decoding of 32 bit-per-sample PCM
Add decoding of FLAC files coding for 32 bit-per-sample PCM to libavcodec.
Diffstat (limited to 'libavcodec/flac.c')
-rw-r--r-- | libavcodec/flac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c index 352d663c67..174b4801be 100644 --- a/libavcodec/flac.c +++ b/libavcodec/flac.c @@ -28,7 +28,7 @@ #include "flacdata.h" #include "flac_parse.h" -static const int8_t sample_size_table[] = { 0, 8, 12, 0, 16, 20, 24, 0 }; +static const int8_t sample_size_table[] = { 0, 8, 12, 0, 16, 20, 24, 32 }; static const AVChannelLayout flac_channel_layouts[8] = { AV_CHANNEL_LAYOUT_MONO, @@ -82,7 +82,7 @@ int ff_flac_decode_frame_header(AVCodecContext *avctx, GetBitContext *gb, /* bits per sample */ bps_code = get_bits(gb, 3); - if (bps_code == 3 || bps_code == 7) { + if (bps_code == 3) { av_log(avctx, AV_LOG_ERROR + log_level_offset, "invalid sample size code (%d)\n", bps_code); |