[svn] / branches / dev-api-4 / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1054, Mon Jun 9 13:55:56 2003 UTC revision 1063, Tue Jun 10 10:12:24 2003 UTC
# Line 25  Line 25 
25   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
26   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27   *   *
28   * $Id: plugin_2pass2.c,v 1.1.2.20 2003-06-09 13:55:07 edgomez Exp $   * $Id: plugin_2pass2.c,v 1.1.2.21 2003-06-10 10:12:24 suxen_drol Exp $
29   *   *
30   *****************************************************************************/   *****************************************************************************/
31    
# Line 244  Line 244 
244          }          }
245    
246          /* Compute the target filesize */          /* Compute the target filesize */
247          if (rc->num_frames  < create->fbase/create->fincr) {      if (rc->param.bitrate<0) {
248            /* if negative, bitrate equals the target (int kbytes) */
249            rc->target = (-rc->param.bitrate) * 1024;
250    
251        }else if (rc->num_frames  < create->fbase/create->fincr) {
252                  /* Source sequence is less than 1s long, we do as if it was 1s long */                  /* Source sequence is less than 1s long, we do as if it was 1s long */
253                  rc->target = rc->param.bitrate / 8;                  rc->target = rc->param.bitrate / 8;
254          } else {          } else {

Legend:
Removed from v.1054  
changed lines
  Added in v.1063

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4