--- branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c 2003/12/06 14:54:00 1245 +++ branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c 2003/12/07 15:08:15 1246 @@ -25,7 +25,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: plugin_2pass2.c,v 1.1.2.28 2003-12-05 14:44:35 edgomez Exp $ + * $Id: plugin_2pass2.c,v 1.1.2.29 2003-12-07 15:08:15 edgomez Exp $ * *****************************************************************************/ @@ -333,7 +333,7 @@ /* Compute the target filesize */ if (rc->param.bitrate<0) { /* if negative, bitrate equals the target (in kbytes) */ - rc->target = (-rc->param.bitrate) * 1024; + rc->target = ((uint64_t)(-rc->param.bitrate)) * 1024; } else if (rc->num_frames < create->fbase/create->fincr) { /* Source sequence is less than 1s long, we do as if it was 1s long */ rc->target = rc->param.bitrate / 8;