changeset 17960:ec93436dc52d

Fix a/v desync for real some files
author rtognimp
date Sun, 26 Mar 2006 14:10:52 +0000
parents f4aa4dc211c2
children 7ba686737423
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sun Mar 26 11:09:17 2006 +0000
+++ b/libmpdemux/video.c	Sun Mar 26 14:10:52 2006 +0000
@@ -597,7 +597,6 @@
     // override frame_time for variable/unknown FPS formats:
     if(!force_fps) switch(demuxer->file_format){
       case DEMUXER_TYPE_GIF:
-      case DEMUXER_TYPE_REAL:
       case DEMUXER_TYPE_MATROSKA:
 	if(d_video->pts>0 && pts1>0 && d_video->pts>pts1)
 	  frame_time=d_video->pts-pts1;
@@ -608,6 +607,7 @@
       case DEMUXER_TYPE_MOV:
       case DEMUXER_TYPE_FILM:
       case DEMUXER_TYPE_VIVO:
+      case DEMUXER_TYPE_REAL:
       case DEMUXER_TYPE_ASF: {
         float next_pts = ds_get_next_pts(d_video);
         float d= next_pts > 0 ? next_pts - d_video->pts : d_video->pts-pts1;