diff nutdec.c @ 3011:0439b354e005 libavformat

ff_nut_reset_ts() expected to get 'ts*time_base_count', but muxer only gave it 'ts'. Fixed by changing ff_nut_reset_ts() and demuxer params
author ods15
date Mon, 04 Feb 2008 10:27:32 +0000
parents fa2fb523fd6b
children 2214e8b1cb4d
line wrap: on
line diff
--- a/nutdec.c	Mon Feb 04 01:06:04 2008 +0000
+++ b/nutdec.c	Mon Feb 04 10:27:32 2008 +0000
@@ -427,7 +427,7 @@
     if(*back_ptr < 0)
         return -1;
 
-    ff_nut_reset_ts(nut, nut->time_base[tmp % nut->time_base_count], tmp);
+    ff_nut_reset_ts(nut, nut->time_base[tmp % nut->time_base_count], tmp / nut->time_base_count);
 
     if(skip_reserved(bc, end) || get_checksum(bc)){
         av_log(s, AV_LOG_ERROR, "sync point checksum mismatch\n");