mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/wavdec: Do not discard sample_count due to rounding
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1bbb5ea10d
commit
4ec4454ccf
@ -435,7 +435,7 @@ break_loop:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( data_size > 0 && sample_count && st->codec->channels
|
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);
|
av_log(s, AV_LOG_WARNING, "ignoring wrong sample_count %"PRId64"\n", sample_count);
|
||||||
sample_count = 0;
|
sample_count = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user