# HG changeset patch # User arpi_esp # Date 987558918 0 # Node ID c2b3a1f340c815c41f1c04900188124789ba1729 # Parent 3601edb3805c2b9e2d02c4d2042337c04f40096e MPEG-ES segfault fixed, stream list printfs moved v 1->0 diff -r 3601edb3805c -r c2b3a1f340c8 mplayer.c --- 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: {