ffmpeg | branch: master | Rodger Combs <rodger.co...@gmail.com> | Thu Apr  7 
20:28:32 2016 -0500| [c890bcbacf321ebd135b952e748f546c9723ec2e] | committer: 
Rodger Combs

lavf/audiotoolboxdec: only provide block alignment for ILBC

Fixes decode errors for some AVI files

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c890bcbacf321ebd135b952e748f546c9723ec2e
---

 libavcodec/audiotoolboxdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 80b1f33..31e14d4 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -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,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to