# HG changeset patch # User rtogni # Date 1151755603 0 # Node ID f974a20a7543ba1ca20566739be8a6f311f06f29 # Parent f2fe972c76177201d4f91892b02f59f71e219f70 Fix A-V sync for real files (also live streams) diff -r f2fe972c7617 -r f974a20a7543 libmpdemux/video.c --- a/libmpdemux/video.c Sat Jul 01 10:59:21 2006 +0000 +++ b/libmpdemux/video.c Sat Jul 01 12:06:43 2006 +0000 @@ -580,7 +580,6 @@ case DEMUXER_TYPE_FILM: case DEMUXER_TYPE_VIVO: case DEMUXER_TYPE_OGG: - 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; @@ -599,6 +598,7 @@ } } break; + case DEMUXER_TYPE_REAL: case DEMUXER_TYPE_LAVF: if((int)sh_video->fps==1000 || (int)sh_video->fps<=1){ float next_pts = ds_get_next_pts(d_video);