[MPlayer-dev-eng] hwac3 on FreeBSD

Alex Beregszaszi alex at galaktik.hu
Fri Sep 13 23:39:43 CEST 2002


Hi,

> Noticed this slight problem with hwac3 on FreeBSD, namely mplayer
> segfaults almost immediately. And why? Function decode_audio in
> libmpcodecs/ad_hwac3.c calls swab() with a len=-1. Fine in Linux since
> swab() there does nothing if len is negative. But in FreeBSD len is
> type size_t i.e. unsigned int, so len=-1 is really quite big and causes
> an almost certain segfault.  
> 
> So, something like the patch below should probably be done. I can't
> really test now since ad_acm.c, vd_vfw.c and ve_vfw.c all refer
> to undefined win32_codec_name...
i've fixed it. check with latest cvs

could you try now to fix that fbsd hwac3 bug? thx

-- 
Alex Beregszaszi  <alex at naxine.org>



More information about the MPlayer-dev-eng mailing list