Hi

Running ffprobe/avprobe on
http://titan.codemill.se/~tomhar/samples/sigfpe.aif results in SIGFPE at
libavformat/aiffdec.c:162 since aiff->block_duration == 0.
Attached patch sets block_duration = 1 in the default case. Fixes the
problem for both projects.

/Tomas
>From 4923a8eef9273ca993a8818a9cdea1b5be906e01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <[email protected]>
Date: Wed, 21 Mar 2012 13:05:34 +0100
Subject: [PATCH] aiffdec: Fix SIGFPE on pcm_f32be

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

diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index ee4fbde..21b85e7 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -144,6 +144,7 @@ static unsigned int get_aiff_header(AVFormatContext *s, int size,
             aiff->block_duration = 160;
             break;
         default:
+            aiff->block_duration = 1;
             break;
         }
         size -= 4;
-- 
1.7.5.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to