[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.41,1.42
Moritz Bunkus CVS
mosu at mplayerhq.hu
Tue Jan 6 12:22:34 CET 2004
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/tmp/cvs-serv6622
Modified Files:
demux_ogg.c
Log Message:
Properly set the file duration for audio-only Ogg files. Patch by Michael Behrisch <behrisch at informatik.hu-berlin.de>
Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- demux_ogg.c 8 Dec 2003 11:11:32 -0000 1.41
+++ demux_ogg.c 6 Jan 2004 11:22:32 -0000 1.42
@@ -423,6 +423,8 @@
if (ds == d->video && ((sh_audio_t*)ds->sh)->format == 0xFFFC)
context = ((sh_video_t *)ds->sh)->context;
data = demux_ogg_read_packet(os,pack,context,&pts,&flags);
+ if(d->video->id < 0)
+ ((sh_audio_t*)ds->sh)->delay = pts;
/// Clear subtitles if necessary (for broken files)
if ((clear_sub > 0) && (pts >= clear_sub)) {
More information about the MPlayer-cvslog
mailing list