changeset 15422:9ac14c8b99b3

don't call fixup_audio if there's no audio
author nicodvb
date Thu, 12 May 2005 23:01:52 +0000
parents ae5e1b9e3c92
children 9a126d9d6d42
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Thu May 12 22:07:11 2005 +0000
+++ b/libmpdemux/demux_ogg.c	Thu May 12 23:01:52 2005 +0000
@@ -1187,8 +1187,9 @@
 
   mp_msg(MSGT_DEMUX,MSGL_V,"Ogg demuxer : found %d audio stream%s, %d video stream%s and %d text stream%s\n",n_audio,n_audio>1?"s":"",n_video,n_video>1?"s":"",ogg_d->n_text,ogg_d->n_text>1?"s":"");
 
-  if(sh_a->format == FOURCC_VORBIS)
-    fixup_vorbis_wf(sh_a);
+  if(sh_a)
+    if(sh_a->format == FOURCC_VORBIS)
+      fixup_vorbis_wf(sh_a);
 
   return 1;