Mercurial > mplayer.hg
changeset 11756:5c55de920ac0
Properly set the file duration for audio-only Ogg files. Patch by Michael Behrisch <behrisch@informatik.hu-berlin.de>
author | mosu |
---|---|
date | Tue, 06 Jan 2004 11:22:32 +0000 |
parents | a79a318585ce |
children | a9dd06d780b8 |
files | libmpdemux/demux_ogg.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c Tue Jan 06 09:30:27 2004 +0000 +++ b/libmpdemux/demux_ogg.c Tue Jan 06 11:22:32 2004 +0000 @@ -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)) {