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

Peter Ross pross
Sun May 30 11:40:53 CEST 2010


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: au-test-getbps.diff
Type: text/x-diff
Size: 510 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100530/479110f1/attachment.diff>
-------------- 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/479110f1/attachment.pgp>



More information about the ffmpeg-devel mailing list