Mercurial > mplayer.hg
comparison mencoder.c @ 14813:39f93fbc52dc
do not hide frame skips/dups! if they happen it's very bad!!
author | rfelker |
---|---|
date | Fri, 25 Feb 2005 10:17:32 +0000 |
parents | 9d495b825bcd |
children | b1ee78ccf111 |
comparison
equal
deleted
inserted
replaced
14812:086ef1b3c24c | 14813:39f93fbc52dc |
---|---|
1578 videosamples++; | 1578 videosamples++; |
1579 videorate+=(GetTimerMS() - ptimer_start); | 1579 videorate+=(GetTimerMS() - ptimer_start); |
1580 | 1580 |
1581 if(skip_flag<0){ | 1581 if(skip_flag<0){ |
1582 // duplicate frame | 1582 // duplicate frame |
1583 if(file_format != DEMUXER_TYPE_TV && !quiet) mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_DuplicateFrames,-skip_flag); | 1583 if(!quiet) mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_DuplicateFrames,-skip_flag); |
1584 while(skip_flag<0){ | 1584 while(skip_flag<0){ |
1585 duplicatedframes++; | 1585 duplicatedframes++; |
1586 if (!encode_duplicates || !sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_DUPLICATE_FRAME, 0) != CONTROL_TRUE) | 1586 if (!encode_duplicates || !sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_DUPLICATE_FRAME, 0) != CONTROL_TRUE) |
1587 muxer_write_chunk(mux_v,0,0); | 1587 muxer_write_chunk(mux_v,0,0); |
1588 ++skip_flag; | 1588 ++skip_flag; |
1589 } | 1589 } |
1590 } else | 1590 } else |
1591 if(skip_flag>0){ | 1591 if(skip_flag>0){ |
1592 // skip frame | 1592 // skip frame |
1593 if(file_format != DEMUXER_TYPE_TV && !quiet) mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_SkipFrame); | 1593 if(!quiet) mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_SkipFrame); |
1594 skippedframes++; | 1594 skippedframes++; |
1595 --skip_flag; | 1595 --skip_flag; |
1596 } | 1596 } |
1597 | 1597 |
1598 if(sh_audio && !demuxer2){ | 1598 if(sh_audio && !demuxer2){ |