changeset 500:c2b3a1f340c8

MPEG-ES segfault fixed, stream list printfs moved v 1->0
author arpi_esp
date Wed, 18 Apr 2001 01:55:18 +0000
parents 3601edb3805c
children bfc86f5a5ba7
files mplayer.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Apr 18 01:27:23 2001 +0000
+++ b/mplayer.c	Wed Apr 18 01:55:18 2001 +0000
@@ -263,7 +263,7 @@
     if(avi_header.a_streams[id]){
         printf("Warning! Audio stream header %d redefined!\n",id);
     } else {
-        if(verbose) printf("Found audio stream: %d\n",id);
+        printf("==> Found audio stream: %d\n",id);
         avi_header.a_streams[id]=malloc(sizeof(sh_audio_t));
         memset(avi_header.a_streams[id],0,sizeof(sh_audio_t));
     }
@@ -274,7 +274,7 @@
     if(avi_header.v_streams[id]){
         printf("Warning! video stream header %d redefined!\n",id);
     } else {
-        if(verbose) printf("Found video stream: %d\n",id);
+        printf("==> Found video stream: %d\n",id);
         avi_header.v_streams[id]=malloc(sizeof(sh_video_t));
         memset(avi_header.v_streams[id],0,sizeof(sh_video_t));
     }
@@ -825,7 +825,8 @@
  }
  case DEMUXER_TYPE_MPEG_ES: {
    d_audio->type=0;
-   has_audio=0;sh_audio=NULL; // ES streams has no audio channel
+   has_audio=0;sh_audio=NULL;   // ES streams has no audio channel
+   d_video->sh=new_sh_video(0); // create dummy video stream header, id=0
    break;
  }
  case DEMUXER_TYPE_MPEG_PS: {