An electronic device, the electronic device comprising: a processor; a memory including computer program code, the memory and the computer program code configured to, working with the processor, cause the electronic device to perform at least the following: encode a clean random access, CRA, picture such that it occurs at a random access point in a bitstream of data where decoding of the bitstream can be started, wherein the CRA picture includes only intra-prediction slices, I-slices, that are decoded using intra-prediction only and does not refer to any picture or pictures other than itself for prediction in a decoding order; determine whether the CRA picture has a subsequent leading picture, wherein the subsequent leading picture follows the CRA picture in the decoding order and precedes the CRA picture in an output order; when the CRA picture has the subsequent leading picture, generate a first Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture has a subsequent leading picture, and send the bitstream with the first NAL unit type for NAL units comprising the encoded CRA picture; and when the CRA picture does not have a subsequent leading picture, generate a second Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture does not have a subsequent leading picture, the second NAL unit type being different from the first NAL unit type, and send the bitstream with the second NAL unit type for the NAL units comprising the encoded CRA picture. a processor; a memory including computer program code, the memory and the computer program code configured to, working with the processor, cause the electronic device to perform at least the following: encode a clean random access, CRA, picture such that it occurs at a random access point in a bitstream of data where decoding of the bitstream can be started, wherein the CRA picture includes only intra-prediction slices, I-slices, that are decoded using intra-prediction only and does not refer to any picture or pictures other than itself for prediction in a decoding order; determine whether the CRA picture has a subsequent leading picture, wherein the subsequent leading picture follows the CRA picture in the decoding order and precedes the CRA picture in an output order; when the CRA picture has the subsequent leading picture, generate a first Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture has a subsequent leading picture, and send the bitstream with the first NAL unit type for NAL units comprising the encoded CRA picture; and when the CRA picture does not have a subsequent leading picture, generate a second Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture does not have a subsequent leading picture, the second NAL unit type being different from the first NAL unit type, and send the bitstream with the second NAL unit type for the NAL units comprising the encoded CRA picture. encode a clean random access, CRA, picture such that it occurs at a random access point in a bitstream of data where decoding of the bitstream can be started, wherein the CRA picture includes only intra-prediction slices, I-slices, that are decoded using intra-prediction only and does not refer to any picture or pictures other than itself for prediction in a decoding order; determine whether the CRA picture has a subsequent leading picture, wherein the subsequent leading picture follows the CRA picture in the decoding order and precedes the CRA picture in an output order; when the CRA picture has the subsequent leading picture, generate a first Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture has a subsequent leading picture, and send the bitstream with the first NAL unit type for NAL units comprising the encoded CRA picture; and generate a first Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture has a subsequent leading picture, and send the bitstream with the first NAL unit type for NAL units comprising the encoded CRA picture; and when the CRA picture does not have a subsequent leading picture, generate a second Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture does not have a subsequent leading picture, the second NAL unit type being different from the first NAL unit type, and send the bitstream with the second NAL unit type for the NAL units comprising the encoded CRA picture. generate a second Network Access Layer, NAL, unit type of the CRA picture indicating that the CRA picture does not have a subsequent leading picture, the second NAL unit type being different from the first NAL unit type, and send the bitstream with the second NAL unit type for the NAL units comprising the encoded CRA picture.