changeset 17277:c568f01ef9f9

search next sequence_header untile a valid one is found
author nicodvb
date Sat, 31 Dec 2005 17:47:54 +0000
parents 3f842e148e1c
children d05606587449
files libmpdemux/video.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sat Dec 31 14:03:47 2005 +0000
+++ b/libmpdemux/video.c	Sat Dec 31 17:47:54 2005 +0000
@@ -274,7 +274,7 @@
    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 @@
    }
    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;