changeset 5084:c64438359260 libavformat

If either of num or den is 0 make both 0 in av_set_pts_info().
author michael
date Thu, 02 Jul 2009 12:47:58 +0000
parents 45ee449ae6ef
children 878651429ae5
files utils.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Wed Jul 01 20:52:48 2009 +0000
+++ b/utils.c	Thu Jul 02 12:47:58 2009 +0000
@@ -3313,4 +3313,7 @@
             av_log(NULL, AV_LOG_DEBUG, "st:%d removing common factor %d from timebase\n", s->index, pts_num/s->time_base.num);
     }else
         av_log(NULL, AV_LOG_WARNING, "st:%d has too large timebase, reducing\n", s->index);
+
+    if(!s->time_base.num || !s->time_base.den)
+        s->time_base.num= s->time_base.den= 0;
 }