Commit 06aa6893 authored by Max Kellermann's avatar Max Kellermann

decoder/faad: bail out early if sample rate is invalid

parent 835b0c44
......@@ -140,6 +140,8 @@ adts_song_duration(DecoderBuffer *buffer)
assert(frame_length <= buffer_length);
sample_rate = adts_sample_rates[(data[2] & 0x3c) >> 2];
if (sample_rate == 0)
break;
}
decoder_buffer_consume(buffer, frame_length);
......
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