OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
507330b
)
check that duration is set to avoid fpe
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Thu, 5 Nov 2009 07:17:10 +0000
(07:17 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Thu, 5 Nov 2009 07:17:10 +0000
(07:17 +0000)
Originally committed as revision 20457 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
dfe50c1
..
dc0135d
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1500,7
+1500,8
@@
static void mov_build_index(MOVContext *mov, AVStream *st)
}
}
}
- st->codec->bit_rate = stream_size*8*sc->time_scale/st->duration;
+ if (st->duration > 0)
+ st->codec->bit_rate = stream_size*8*sc->time_scale/st->duration;
} else {
for (i = 0; i < sc->chunk_count; i++) {
unsigned chunk_samples;