mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
Fix crash with all audio-only ogg files, the vorbis_info struct is not
stored in the sh_audio context but in the demuxer priv element git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18740 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ec7d6992af
commit
e261eefda0
@ -1648,7 +1648,7 @@ static int demux_ogg_control(demuxer_t *demuxer,int cmd, void *arg){
|
||||
rate = os->samplerate;
|
||||
} else {
|
||||
os = &ogg_d->subs[demuxer->audio->id];
|
||||
rate = (float)((ov_struct_t*)((sh_audio_t*)demuxer->audio->sh)->context)->vi.rate;
|
||||
rate = ogg_d->vi.rate;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user