Commit 4ec4454c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/wavdec: Do not discard sample_count due to rounding

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1bbb5ea1
......@@ -435,7 +435,7 @@ break_loop:
}
if ( data_size > 0 && sample_count && st->codec->channels
&& (data_size << 3) / sample_count / st->codec->channels > st->codec->bits_per_coded_sample) {
&& (data_size << 3) / sample_count / st->codec->channels > st->codec->bits_per_coded_sample + 1) {
av_log(s, AV_LOG_WARNING, "ignoring wrong sample_count %"PRId64"\n", sample_count);
sample_count = 0;
}
......
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