comparison libmpdemux/video.c @ 21951:bd3c871c93d0

in vc1 probing code, all packets before the first sequence header must be skipped, not read
author nicodvb
date Sat, 20 Jan 2007 13:10:40 +0000
parents 647f3be495eb
children 58d083ace2f2
comparison
equal deleted inserted replaced
21950:647f3be495eb 21951:bd3c871c93d0
363 videobuf_code_len=0; 363 videobuf_code_len=0;
364 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Searching for VC1 sequence header... "); 364 mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Searching for VC1 sequence header... ");
365 while(1){ 365 while(1){
366 int i=sync_video_packet(d_video); 366 int i=sync_video_packet(d_video);
367 if(i==0x10F) break; // found it! 367 if(i==0x10F) break; // found it!
368 if(!i || !read_video_packet(d_video)){ 368 if(!i || !skip_video_packet(d_video)){
369 if( mp_msg_test(MSGT_DECVIDEO,MSGL_V) ) mp_msg(MSGT_DECVIDEO,MSGL_V,"NONE :(\n"); 369 if( mp_msg_test(MSGT_DECVIDEO,MSGL_V) ) mp_msg(MSGT_DECVIDEO,MSGL_V,"NONE :(\n");
370 mp_msg(MSGT_DECVIDEO,MSGL_ERR, "Couldn't find VC-1 sequence header\n"); 370 mp_msg(MSGT_DECVIDEO,MSGL_ERR, "Couldn't find VC-1 sequence header\n");
371 return 0; 371 return 0;
372 } 372 }
373 } 373 }