Browse Source

Fix muxing QDM2 mono into caf.

tags/n2.0
Carl Eugen Hoyos 12 years ago
parent
commit
7f1b3c2ca6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/cafenc.c

+ 2
- 1
libavformat/cafenc.c View File

@@ -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;


Loading…
Cancel
Save