changeset 18737:36ef1777ed81

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
author reimar
date Sat, 17 Jun 2006 15:01:43 +0000
parents 04a651324963
children 6a99893397e9
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Fri Jun 16 21:59:56 2006 +0000
+++ b/libmpdemux/demux_ogg.c	Sat Jun 17 15:01:43 2006 +0000
@@ -1648,7 +1648,7 @@
     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;
   }