[FFmpeg-devel] [PATCH] prevent infinite loop when loading unsupport .au files

Michael Niedermayer michaelni
Sun May 30 18:23:58 CEST 2010


On Sun, May 30, 2010 at 07:40:53PM +1000, Peter Ross wrote:
> Hi,
> 
> The Sun .au demuxer use av_get_bits_per_sample() to determine
> the number of bytes to read per frame.
> 
> When attempting to decode an .au file with unsupported codec type,
> av_get_bits_per_sample() returns 0. This resulting in au_read_packet()
> looping endlessly.
> 
> -- Peter
> (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)

>  au.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 2a36714111ad59078af9704aca75afdc8b36bbe5  au-test-getbps.diff

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100530/4957895d/attachment.pgp>



More information about the ffmpeg-devel mailing list