summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-18 01:55:18 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-18 01:55:18 +0000
commit5f6b1b3d0331a340e0b7dc9b9e7ad754ac4b09b1 (patch)
tree736f5f4f9fa1e62c07be7a9584c4871feac75084 /mplayer.c
parent51472516a06ed54faed38d74b588695ce6f31632 (diff)
downloadmpv-5f6b1b3d0331a340e0b7dc9b9e7ad754ac4b09b1.tar.bz2
mpv-5f6b1b3d0331a340e0b7dc9b9e7ad754ac4b09b1.tar.xz
MPEG-ES segfault fixed, stream list printfs moved v 1->0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@501 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 575b8620fe..31cc72ce1f 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -263,7 +263,7 @@ sh_audio_t* new_sh_audio(int id){
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 @@ sh_video_t* new_sh_video(int id){
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 @@ switch(file_format){
}
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: {