ext/ffmpeg/gstffmpegcodecmap.h: Avoid division by 0 errors.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 20 Sep 2005 10:50:22 +0000 (10:50 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 20 Sep 2005 10:50:22 +0000 (10:50 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpegcodecmap.h:
Avoid division by 0 errors.

ChangeLog
common
ext/ffmpeg/gstffmpegcodecmap.h

index eaacd1b..150457a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-20  Wim Taymans  <wim@fluendo.com>
+
+       * ext/ffmpeg/gstffmpegcodecmap.h:
+       Avoid division by 0 errors.
+
 2005-09-19  Wim Taymans  <wim@fluendo.com>
 
        * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_setcaps),
diff --git a/common b/common
index eac450a..cd4da6a 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit eac450a673cd1d3a606fe75399d0cd1fcb1d0d7b
+Subproject commit cd4da6a319d9f92d28f7b8a3b412577e6de50b64
index e8e3aa0..9d884d1 100644 (file)
@@ -155,7 +155,7 @@ gst_ffmpeg_time_gst_to_ff (guint64 time, AVRational base)
 {
   gint64 out;
 
-  if (!GST_CLOCK_TIME_IS_VALID (time)) {
+  if (!GST_CLOCK_TIME_IS_VALID (time) || base.num == 0) {
     out = AV_NOPTS_VALUE;
   } else {
     AVRational bq = { 1, GST_SECOND };