diff options
author | 2004-01-06 11:22:32 +0000 | |
---|---|---|
committer | 2004-01-06 11:22:32 +0000 | |
commit | 2a4313fffdd6e2675d25da4ba067c91c0b637dad (patch) | |
tree | 450c3c8143397e9f1f7ab0bb4b0de3cb9e888214 | |
parent | 3b8f28041c62c4891dba67e308277c81980a293b (diff) |
Properly set the file duration for audio-only Ogg files. Patch by Michael Behrisch <behrisch@informatik.hu-berlin.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11757 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demux_ogg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index a6f03df3b5..5b7ace9f4d 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -423,6 +423,8 @@ static int demux_ogg_add_packet(demux_stream_t* ds,ogg_stream_t* os,ogg_packet* 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)) { |