[FFmpeg-cvslog] aiff: don't skip block_align==0 check on COMM-after-SSND files.

Ronald S. Bultje git at videolan.org
Sun Feb 19 02:19:06 CET 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Feb 17 15:51:27 2012 -0800| [32a659c758bf2ddd8ad48f18c06fa77444341286] | committer: Ronald S. Bultje

aiff: don't skip block_align==0 check on COMM-after-SSND files.

This prevents SIGFPEs when using block_align for divisions.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org

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

 libavformat/aiffdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index c6b5187..b3cbc11 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -263,12 +263,12 @@ static int aiff_read_header(AVFormatContext *s)
         }
     }
 
+got_sound:
     if (!st->codec->block_align) {
-        av_log(s, AV_LOG_ERROR, "could not find COMM tag\n");
+        av_log(s, AV_LOG_ERROR, "could not find COMM tag or invalid block_align value\n");
         return -1;
     }
 
-got_sound:
     /* Now positioned, get the sound data start and end */
     avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
     st->start_time = 0;



More information about the ffmpeg-cvslog mailing list