[MPlayer-dev-eng] mplayer without video
Sam Lin
itrs at softwell.com.tw
Mon Jan 14 10:46:12 CET 2002
>On Sun, 13 Jan 2002 22:48:05 -0800
>Bertrand Baudet <bertrand_baudet at yahoo.com> wrote:
>Yesterday I look at this and I finnaly had success with audio only stream
> (but not all are working). The problem is in the demuxer, it assume to found
> first a video chunk. It was working with downloaded sample because
> it load chunk until eof and then pass on audio and work. What is needed
> is to do the ds_fill_buffer with video only if we found a video stream in
> the header wich is currentlly assumed and not checked. Look in demuxer.c
> the function wich open the demuxer I think it will be easyer to understand what
> I'm trying to explain ;·).
> Albeu
So the solution is:
--- main/libmpdemux/demuxer.c Thu Jan 10 13:56:16 2002
+++ main-itrs/libmpdemux/demuxer.c Mon Jan 14 17:01:47 2002
@@ -587,6 +587,7 @@
stream_seek(demuxer->stream,demuxer->movi_start);
// demuxer->idx_pos=0;
// demuxer->endpos=avi_header.movi_end;
+ if(sh_video){
if(!ds_fill_buffer(d_video)){
mp_msg(MSGT_DEMUXER,MSGL_WARN,"ASF: " MSGTR_MissingVideoStream);
sh_video=NULL;
@@ -601,6 +602,7 @@
sh_video->bih->biHeight,
sh_video->bih->biBitCount);
// sh_video->i_bps=10*asf_packetsize; // FIXME!
+ }
}
if(audio_id!=-2){
mp_msg(MSGT_DEMUXER,MSGL_V,"ASF: Searching for audio stream (id:%d)\n",d_audio->id);
END
Is this right ?
More information about the MPlayer-dev-eng
mailing list