1. A method of encoding a sequence of digital images into a bitstream, at least one portion of an image being encoded by motion compensation with respect to a reference image portion, wherein, for at least one image portion to encode, the method comprises: obtaining a target number of motion information predictors to be used for said image portion to encode and generating a set of motion information predictors using the obtained target number of motion information predictors; and wherein generating comprises: obtaining a first set of motion information predictors each associated with an image portion having a predetermined spatial and/or temporal relationship with said image portion being encoded, modifying said first set of motion information predictors by removing one or more duplicate motion information predictors to obtain a reduced set of motion information predictors containing a first number of motion information predictors, each motion information predictor of said reduced set being different from any other motion information predictor of said reduced set after obtaining said reduced set of motion information predictors, comparing said first number of motion information predictors to said target number obtained, and if said first number is lower than said target number, obtaining an additional motion information predictor, and adding said additional motion information predictor to said reduced set of motion information predictors.