mirror of
https://github.com/mpv-player/mpv
synced 2025-02-24 00:46:58 +00:00
removed funny calls to fflush(stdout) after mp_msg()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24866 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6fc30e89a5
commit
8d83daa1cf
@ -106,7 +106,7 @@ switch(video_codec){
|
||||
case VIDEO_MPEG4: {
|
||||
int pos = 0, vop_cnt=0, units[3];
|
||||
videobuf_len=0; videobuf_code_len=0;
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Start code... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Start code... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
if(i<=0x11F) break; // found it!
|
||||
@ -124,7 +124,7 @@ switch(video_codec){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Layer Start code... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Layer Start code... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"M4V: 0x%X\n",i);
|
||||
@ -140,7 +140,7 @@ switch(video_codec){
|
||||
return 0;
|
||||
}
|
||||
mp4_header_process_vol(&picture, &(videobuffer[pos]));
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"OK! FPS SEEMS TO BE %.3f\nSearching for Video Object Plane Start code... ", sh_video->fps);fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"OK! FPS SEEMS TO BE %.3f\nSearching for Video Object Plane Start code... ", sh_video->fps);
|
||||
mp4_init:
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
@ -199,7 +199,7 @@ switch(video_codec){
|
||||
case VIDEO_H264: {
|
||||
int pos = 0;
|
||||
videobuf_len=0; videobuf_code_len=0;
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for sequence parameter set... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for sequence parameter set... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
if((i&~0x60) == 0x107 && i != 0x107) break; // found it!
|
||||
@ -223,7 +223,7 @@ switch(video_codec){
|
||||
return 0;
|
||||
}
|
||||
h264_parse_sps(&picture, &(videobuffer[pos]), videobuf_len - pos);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for picture parameter set... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for picture parameter set... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"H264: 0x%X\n",i);
|
||||
@ -233,7 +233,7 @@ switch(video_codec){
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"OK!\nSearching for Slice... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"OK!\nSearching for Slice... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
if((i&~0x60) == 0x101 || (i&~0x60) == 0x102 || (i&~0x60) == 0x105) break; // found it!
|
||||
@ -256,7 +256,7 @@ mpeg_header_parser:
|
||||
// Find sequence_header first:
|
||||
videobuf_len=0; videobuf_code_len=0;
|
||||
telecine=0; telecine_cnt=-2.5;
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for sequence header... ");fflush(stdout);
|
||||
mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for sequence header... ");
|
||||
while(1){
|
||||
int i=sync_video_packet(d_video);
|
||||
if(i==0x1B3) break; // found it!
|
||||
|
Loading…
Reference in New Issue
Block a user