mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
51472516a0
commit
5f6b1b3d03
|
@ -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));
|
||||
}
|
||||
|
@ -826,6 +826,7 @@ switch(file_format){
|
|||
case DEMUXER_TYPE_MPEG_ES: {
|
||||
d_audio->type=0;
|
||||
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: {
|
||||
|
|
Loading…
Reference in New Issue