Patent ID: 8139646

Claim:
A method of assembling a first data stream with a second data stream, each data stream comprising coded frames, each coded frame being associated with a relative time value having an integer part determining a period of time to which the coded frame belongs and a part determining the position of the coded frame within said period of time, specific coded frames of a data stream being preceded by an absolute time value, said method comprising the steps of: calculating a current reference time value for a current coded frame on the basis of a previous reference time value and on an integer part of the current relative time value; calculating an offset time value on the basis of the reference time value of the last frame in the display order of the first data stream, wherein the offset time value is equal to the reference time value of the last coded frame in the display order of the first data stream if the part determining the position of the last coded frame in the display order of the first data stream within the period of time is smaller than the part determining the position of the first coded frame in the display order of the second data stream within the period of time, and the offset time value is equal to the reference time value of the last coded frame in the display order of the first data stream plus one if the part determining the position of the last coded frame in the display order of the first data stream within the period of time is greater than or equal to the part determining the position of the first coded frame in the display order of the second data stream within the period of time; and modifying the absolute time values of the specific coded frames of the second data stream by adding the offset time value to said absolute time values of said second data stream.