comparison mencoder.c @ 15895:7742302e793d

Do not count skipped/broken frames when using -frames
author reimar
date Sun, 03 Jul 2005 10:09:09 +0000
parents da752f91c5f2
children 11966749d065
comparison
equal deleted inserted replaced
15894:688fa06538ef 15895:7742302e793d
1271 skip_flag>0 && (!sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE)); 1271 skip_flag>0 && (!sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE));
1272 1272
1273 if (sh_video->vf_inited < 0) mencoder_exit(1, NULL); 1273 if (sh_video->vf_inited < 0) mencoder_exit(1, NULL);
1274 1274
1275 if(!blit_frame){ 1275 if(!blit_frame){
1276 if (play_n_frames >= 0)
1277 play_n_frames++;
1276 badframes++; 1278 badframes++;
1277 if(skip_flag<=0){ 1279 if(skip_flag<=0){
1278 // unwanted skipping of a frame, what to do? 1280 // unwanted skipping of a frame, what to do?
1279 if(skip_limit==0){ 1281 if(skip_limit==0){
1280 // skipping not allowed -> write empty frame: 1282 // skipping not allowed -> write empty frame: