Update of /cvsroot/mplayer/main/libmpdemux In directory mail:/var/tmp.root/cvs-serv27178 Modified Files: demux_rawdv.c Log Message: -nosound fix Index: demux_rawdv.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rawdv.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- demux_rawdv.c 4 Oct 2002 19:23:36 -0000 1.2 +++ demux_rawdv.c 8 Oct 2002 23:53:33 -0000 1.3 @@ -108,8 +108,8 @@ dp_video->pos=frames->current_filepos; dp_video->flags=0; - if (demuxer->audio && demuxer->audio->id!=-2) - { + if (demuxer->audio && demuxer->audio->id>=-1) + { demux_packet_t* dp_audio=clone_demux_packet(dp_video); ds_add_packet(demuxer->audio,dp_audio); } @@ -185,7 +185,7 @@ frames->frame_number=demuxer->stream->end_pos/frames->frame_size; mp_msg(MSGT_DEMUXER,MSGL_V,"demux_open_rawdv() seek to %d, size: %d, dv_dec->frame_size: %d\n",frames->current_filepos,frames->frame_size, dv_decoder->frame_size); - if (dv_decoder->audio != NULL){ + if (dv_decoder->audio != NULL && demuxer->audio->id>=-1){ sh_audio_t *sh_audio = new_sh_audio(demuxer, 0); demuxer->audio->sh = sh_audio; sh_audio->ds = demuxer->audio;
participants (1)
-
Arpi of Ize