mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
3b8f28041c
commit
2a4313fffd
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue