From 55fafe1c3b1746e48fe886c432cdbb822e298891 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 31 Dec 2005 17:47:54 +0000 Subject: search next sequence_header untile a valid one is found git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17278 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libmpdemux/video.c b/libmpdemux/video.c index f6bc1724f7..bba6d95aa7 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -274,7 +274,7 @@ switch(video_codec){ break; } case VIDEO_MPEG12: { -//mpeg_header_parser: +mpeg_header_parser: // Find sequence_header first: videobuf_len=0; videobuf_code_len=0; telecine=0; telecine_cnt=-2.5; @@ -307,7 +307,8 @@ switch(video_codec){ } if(mp_header_process_sequence_header (&picture, &videobuffer[4])) { mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_BadMpegSequHdr); - return 0; + goto mpeg_header_parser; + //return 0; } if(sync_video_packet(d_video)==0x1B5){ // next packet is seq. ext. // videobuf_len=0; -- cgit v1.2.3