Encoded pictures comprise one or more independently decodable frames,
reference frames, and predicted frames. In the method an arrangement step
is performed for arranging the pictures in an encoding order, and
information on the presentation order is defined for the encoded
pictures. Further in the method, a transmission step is performed for
transmitting said encoded pictures to a decoder, a decoding step for
decoding the encoded pictures for forming decoded pictures, and
rearranging step for arranging the decoded pictures in presentation
order. An expected increment value of the presentation order per picture
is defined, and a parameter indicative of the difference between the
expected increment value and the real increment value is calculated. The
calculated parameter is VLC coded, and the VLC coded parameter is
transmitted, wherein the VLC coded parameter is used in the decoder for
arranging the decoded pictures in correct presentation order.