# HG changeset patch # User pross # Date 1275302856 0 # Node ID 51ae348d451122466f51e300da9f91247bf61169 # Parent 490c440a53e7c8cbbbc8c15e501335eacf3b09c6 Prevent au_read_packet() looping endlessly when .au file contains unsupported codec type. diff -r 490c440a53e7 -r 51ae348d4511 au.c --- a/au.c Fri May 28 18:21:57 2010 +0000 +++ b/au.c Mon May 31 10:47:36 2010 +0000 @@ -139,6 +139,11 @@ codec = ff_codec_get_id(codec_au_tags, id); + if (!av_get_bits_per_sample(codec)) { + av_log_ask_for_sample(s, "could not determine bits per sample\n"); + return AVERROR_INVALIDDATA; + } + if (size >= 24) { /* skip unused data */ url_fseek(pb, size - 24, SEEK_CUR);