Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-27 13:09:02 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-06-28 11:04:16 +0400
commit7f1b3c2ca6942580513392fce33cf54cef859b8f (patch)
tree5cc42701438c95fce76623c547a6f51f43635927 /libavformat/cafenc.c
parentef906390043010cde8844ec30da79926f2f8b846 (diff)
Fix muxing QDM2 mono into caf.
Diffstat (limited to 'libavformat/cafenc.c')
-rw-r--r--libavformat/cafenc.c3
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;