Commit 52fdaf27 authored by Michael Niedermayer's avatar Michael Niedermayer

audemux: Fix potential integer overflow leading to a division by 0

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8aa57b7b
......@@ -170,7 +170,7 @@ static int au_read_header(AVFormatContext *s)
st->codec->channels = channels;
st->codec->sample_rate = rate;
if (data_size != AU_UNKNOWN_SIZE)
st->duration = (((int64_t)data_size)<<3) / (st->codec->channels * bps);
st->duration = (((int64_t)data_size)<<3) / (st->codec->channels * (int64_t)bps);
avpriv_set_pts_info(st, 64, 1, rate);
return 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