[FFmpeg-cvslog] r20457 - trunk/libavformat/mov.c
bcoudurier
subversion
Thu Nov 5 08:17:11 CET 2009
Author: bcoudurier
Date: Thu Nov 5 08:17:10 2009
New Revision: 20457
Log:
check that duration is set to avoid fpe
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Thu Nov 5 08:11:54 2009 (r20456)
+++ trunk/libavformat/mov.c Thu Nov 5 08:17:10 2009 (r20457)
@@ -1500,7 +1500,8 @@ static void mov_build_index(MOVContext *
}
}
}
- 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;
More information about the ffmpeg-cvslog
mailing list