mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
Prevent au_read_packet() looping endlessly when .au file contains unsupported codec type.
Originally committed as revision 23392 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
274793de6e
commit
0a624147c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user