summaryrefslogtreecommitdiffstats
path: root/libmpdemux/video.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-31 17:47:54 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-31 17:47:54 +0000
commit55fafe1c3b1746e48fe886c432cdbb822e298891 (patch)
tree85ef7257a9279c8baadeb0ad6f696cdc898af628 /libmpdemux/video.c
parent56f84221298d259527689044b449948a46967adb (diff)
downloadmpv-55fafe1c3b1746e48fe886c432cdbb822e298891.tar.bz2
mpv-55fafe1c3b1746e48fe886c432cdbb822e298891.tar.xz
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
Diffstat (limited to 'libmpdemux/video.c')
-rw-r--r--libmpdemux/video.c5
1 files 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;