Mercurial > mplayer.hg
comparison libmpdemux/asfheader.c @ 6666:349138a7b414
Fix -bandwidth if no streaming available, 10l ;)
author | atmos4 |
---|---|
date | Sun, 07 Jul 2002 16:17:45 +0000 |
parents | fc2de514a140 |
children | e44ec5681211 |
comparison
equal
deleted
inserted
replaced
6665:3284abe2d73f | 6666:349138a7b414 |
---|---|
320 if(!stream_seek(demuxer->stream,endpos)) break; | 320 if(!stream_seek(demuxer->stream,endpos)) break; |
321 } // while EOF | 321 } // while EOF |
322 | 322 |
323 if(streams) { | 323 if(streams) { |
324 uint32_t vr = 0, ar = 0,i; | 324 uint32_t vr = 0, ar = 0,i; |
325 #ifdef STREAMING | |
325 if( demuxer->stream->streaming_ctrl!=NULL ) { | 326 if( demuxer->stream->streaming_ctrl!=NULL ) { |
326 if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) { | 327 if( demuxer->stream->streaming_ctrl->bandwidth!=0 && demuxer->stream->streaming_ctrl->data!=NULL ) { |
327 best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id; | 328 best_audio = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->audio_id; |
328 best_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id; | 329 best_video = ((asf_http_streaming_ctrl_t*)demuxer->stream->streaming_ctrl->data)->video_id; |
329 } | 330 } |
330 } else | 331 } else |
332 #endif | |
331 for(i = 0; i < stream_count; i++) { | 333 for(i = 0; i < stream_count; i++) { |
332 uint32_t id = streams[2*i]; | 334 uint32_t id = streams[2*i]; |
333 uint32_t rate = streams[2*i+1]; | 335 uint32_t rate = streams[2*i+1]; |
334 if(demuxer->v_streams[id] && rate > vr) { | 336 if(demuxer->v_streams[id] && rate > vr) { |
335 vr = rate; | 337 vr = rate; |