changeset 999:76287fba65ff libavformat

set track timescale to mov timescale if 0 patch by (Baptiste COUDURIER <baptiste.coudurier smartjog com)
author michael
date Mon, 06 Mar 2006 22:15:43 +0000
parents ea685f7f9ba7
children 508ab1067ed9
files mov.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Mon Mar 06 21:29:48 2006 +0000
+++ b/mov.c	Mon Mar 06 22:15:43 2006 +0000
@@ -1635,6 +1635,8 @@
 
         if(!sc->time_rate)
             sc->time_rate=1;
+        if(!sc->time_scale)
+            sc->time_scale= mov->time_scale;
         av_set_pts_info(s->streams[i], 64, sc->time_rate, sc->time_scale);
 
         if(s->streams[i]->duration != AV_NOPTS_VALUE){