Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
52fdaf27f7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/au.c

+ 1
- 1
libavformat/au.c View File

@@ -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;
}


Loading…
Cancel
Save