OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14731d
)
ensure av_rescale_q() can be calculated (won't divide by zero)
author
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 21 Jan 2008 23:43:25 +0000
(23:43 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 21 Jan 2008 23:43:25 +0000
(23:43 +0000)
Originally committed as revision 11592 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
4a67404
..
d3e6afe
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1426,7
+1426,7
@@
static void av_update_stream_timings(AVFormatContext *ic)
duration = INT64_MIN;
for(i = 0;i < ic->nb_streams; i++) {
st = ic->streams[i];
- if (st->start_time != AV_NOPTS_VALUE) {
+ if (st->start_time != AV_NOPTS_VALUE
&& st->time_base.den
) {
start_time1= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);
if (start_time1 < start_time)
start_time = start_time1;