Browse Source

lavf/audiotoolboxdec: only provide block alignment for ILBC

Fixes decode errors for some AVI files
tags/n3.1
Rodger Combs 10 years ago
parent
commit
c890bcbacf
No known key found for this signature in database GPG Key ID: E3E54DCDCD3CB843
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/audiotoolboxdec.c

+ 1
- 1
libavcodec/audiotoolboxdec.c View File

@@ -301,7 +301,7 @@ static av_cold int ffat_create_decoder(AVCodecContext *avctx, AVPacket *pkt)

AudioStreamBasicDescription in_format = {
.mFormatID = ffat_get_format_id(avctx->codec_id, avctx->profile),
.mBytesPerPacket = avctx->block_align,
.mBytesPerPacket = (avctx->codec_id == AV_CODEC_ID_ILBC) ? avctx->block_align : 0,
};
AudioStreamBasicDescription out_format = {
.mFormatID = kAudioFormatLinearPCM,


Loading…
Cancel
Save