changeset 6666:349138a7b414

Fix -bandwidth if no streaming available, 10l ;)
author atmos4
date Sun, 07 Jul 2002 16:17:45 +0000
parents 3284abe2d73f
children 15efad628385
files libmpdemux/asfheader.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfheader.c	Sun Jul 07 16:12:30 2002 +0000
+++ b/libmpdemux/asfheader.c	Sun Jul 07 16:17:45 2002 +0000
@@ -322,12 +322,14 @@
 
 if(streams) {
   uint32_t vr = 0, ar = 0,i;
+#ifdef STREAMING
   if( demuxer->stream->streaming_ctrl!=NULL ) {
 	  if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) {
 		  best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id;
 		  best_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id;
 	  }
-  } else 
+  } else
+#endif
   for(i = 0; i < stream_count; i++) {
     uint32_t id = streams[2*i];
     uint32_t rate = streams[2*i+1];