Update of /cvsroot/mplayer/main In directory mplayer:/var/tmp.root/cvs-serv9607 Modified Files: dec_video.c Log Message: parse_es init fixed Index: dec_video.c =================================================================== RCS file: /cvsroot/mplayer/main/dec_video.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- dec_video.c 23 Aug 2001 12:24:59 -0000 1.30 +++ dec_video.c 23 Aug 2001 13:19:30 -0000 1.31 @@ -591,6 +591,7 @@ case DEMUXER_TYPE_MPEG_ES: case DEMUXER_TYPE_MPEG_PS: { // Find sequence_header first: + videobuf_len=0; videobuf_code_len=0; mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for sequence header... ");fflush(stdout); while(1){ int i=sync_video_packet(d_video); @@ -606,13 +607,13 @@ // sh_video=d_video->sh;sh_video->ds=d_video; mpeg2_init(); // ========= Read & process sequence header & extension ============ - videobuffer=memalign(8,VIDEOBUFFER_SIZE); + if(!videobuffer) videobuffer=memalign(8,VIDEOBUFFER_SIZE); if(!videobuffer){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Cannot allocate shared memory\n"); return 0; // GUI_MSG( mplErrorShMemAlloc ) } - videobuf_len=0; + if(!read_video_packet(d_video)){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,"FATAL: Cannot read sequence header!\n"); return 0;