diff options
-rw-r--r-- | libavformat/cafenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 11bb055965..cd3a0be907 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -86,8 +86,9 @@ static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels) { return 1152; case AV_CODEC_ID_AC3: return 1536; - case AV_CODEC_ID_ALAC: case AV_CODEC_ID_QDM2: + return 2048 * channels; + case AV_CODEC_ID_ALAC: return 4096; case AV_CODEC_ID_ADPCM_IMA_WAV: return (1024 - 4 * channels) * 8 / (4 * channels) + 1; |