[FFmpeg-devel] [PATCH] aacenc: Segmentation fault when frame contains samples with NaN values.

Michael Niedermayer michaelni at gmx.at
Fri Mar 7 16:16:01 CET 2014


On Fri, Mar 07, 2014 at 04:08:25PM +0100, Anders Rein wrote:
> The ffmpeg executable gave a segmentation fault when transcoding a
> wmv file to mp4 (h264, aac). The segfault happend in the aac encoder
> code and was caused by the wma2 decoder returning NaN samples. I
> tried to find the bug in the wma2 decoder, but eventually gave up. I
> did however add float clamping and checking for NaN in the aac
> encoder to make it more robust and avoid segmentation faults.

How can the NaN sample production be reproduced ?
I dont think decoders should return NaN samples


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140307/e0a8614c/attachment.asc>


More information about the ffmpeg-devel mailing list