changeset 12170:8db1b587d16a

lavf ASF support
author michael
date Sun, 11 Apr 2004 19:03:12 +0000
parents 71c49bf6dcac
children 0d8462f0c444
files libmpdemux/video.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sun Apr 11 18:07:54 2004 +0000
+++ b/libmpdemux/video.c	Sun Apr 11 19:03:12 2004 +0000
@@ -482,6 +482,15 @@
         }
       }
       break;
+      case DEMUXER_TYPE_LAVF:
+        if((int)sh_video->fps==1000 || (int)sh_video->fps<=1){
+          float next_pts = ds_get_next_pts(d_video);
+          float d= next_pts > 0 ? next_pts - d_video->pts : d_video->pts-pts1;
+          if(d>=0){
+            frame_time = d;
+          } 
+        }
+      break;
     }
     
     if(demuxer->file_format==DEMUXER_TYPE_MPEG_PS ||