# HG changeset patch # User rguyom # Date 1036339018 0 # Node ID ce06bf810d5a0cda6aeb9f80fdd30d95eba6509f # Parent c524ca26ace1ba12ebc8cd8c2de8680766f5547f Simpler. diff -r c524ca26ace1 -r ce06bf810d5a xvid_vbr.c --- a/xvid_vbr.c Sun Nov 03 15:14:36 2002 +0000 +++ b/xvid_vbr.c Sun Nov 03 15:56:58 2002 +0000 @@ -612,7 +612,7 @@ }while(i < 2); /* Prepare to write to the stream */ - fseek( state->pass1_file, ftell( state->pass1_file ), SEEK_SET ); + fseek( state->pass1_file, 0L, SEEK_CUR ); /* Overwrite the frame field - safe as we have written extra spaces */ fprintf(state->pass1_file, "# frames : %.10d\n", state->nb_frames);