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

Anders Rein are at vizrt.com
Fri Mar 7 16:08:25 CET 2014

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-a-problem-that-caused-the-aac-encoder-segfault.patch
Type: text/x-patch
Size: 2380 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140307/86c061db/attachment.bin>

More information about the ffmpeg-devel mailing list