Commit ceb8e7db authored by pross's avatar pross

Prevent au_read_packet() looping endlessly when .au file contains unsupported codec type.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23392 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d754a8d8
......@@ -139,6 +139,11 @@ static int au_read_header(AVFormatContext *s,
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment