OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aa57b7
)
audemux: Fix potential integer overflow leading to a division by 0
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 22 Apr 2012 13:34:21 +0000
(15:34 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 22 Apr 2012 13:34:21 +0000
(15:34 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/au.c
patch
|
blob
|
history
diff --git
a/libavformat/au.c
b/libavformat/au.c
index
bec0d76
..
b66d559
100644
(file)
--- a/
libavformat/au.c
+++ b/
libavformat/au.c
@@
-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;
}