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:
7ee191c
)
lavf: fix the comparison in an overflow check
author
Anton Khirnov
<anton@khirnov.net>
Wed, 4 Sep 2013 06:55:08 +0000
(08:55 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Sat, 7 Sep 2013 09:52:40 +0000
(11:52 +0200)
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
3644bcd
..
3065c71
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1758,7
+1758,7
@@
static void estimate_timings_from_bit_rate(AVFormatContext *ic)
for(i=0;i<ic->nb_streams;i++) {
st = ic->streams[i];
if (st->codec->bit_rate > 0) {
- if (INT_MAX - st->codec->bit_rate
>
bit_rate) {
+ if (INT_MAX - st->codec->bit_rate
<
bit_rate) {
bit_rate = 0;
break;
}