changeset 7673:a401a6ea5358

-nosound fix
author arpi
date Tue, 08 Oct 2002 23:53:33 +0000
parents e6b46875e1b9
children 7078f0139bed
files libmpdemux/demux_rawdv.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rawdv.c	Tue Oct 08 23:11:49 2002 +0000
+++ b/libmpdemux/demux_rawdv.c	Tue Oct 08 23:53:33 2002 +0000
@@ -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;