A method performed by a decoder (100,200,400), said method comprises: determining, after a current picture of a bitstream has been decoded and stored in a decoded picture buffer (125, 225) a number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output, said current picture belonging to a layer other than a highest layer that is decoded by said decoder (100, 200, 400) of a multi-layer video sequence comprising multiple layers of pictures; deriving a value sps_max_num_reorder_pics [ HighestTid]from a syntax element associated with said highest layer, wherein the HighestTid specifies said highest layer, and the syntax element is retrieved from a sequence parameter set in the bitstream, and each layer i of said multiple layers has an associated syntax element defining a respective value sps_max_num_reorder_pics [ i], and said value sps_max_num_reorder_pics [ i] indicates a maximum allowed number of pictures that can precede any picture in said multi-layer video sequence in decoding order and follow that picture in output order when HighestTid is equal to i; outputting a picture, which is a first picture in output order of said pictures in said decoded picture buffer (125, 225) that are marked as needed for output, if said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output is greater than said value sps_max_num_reorder_pics [ HighestTid]; and marking said picture as not needed for output if said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output is greater than said value sps_max_num_reorder_pics [ HighestTid]. determining, after a current picture of a bitstream has been decoded and stored in a decoded picture buffer (125, 225) a number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output, said current picture belonging to a layer other than a highest layer that is decoded by said decoder (100, 200, 400) of a multi-layer video sequence comprising multiple layers of pictures; deriving a value sps_max_num_reorder_pics [ HighestTid]from a syntax element associated with said highest layer, wherein the HighestTid specifies said highest layer, and the syntax element is retrieved from a sequence parameter set in the bitstream, and each layer i of said multiple layers has an associated syntax element defining a respective value sps_max_num_reorder_pics [ i], and said value sps_max_num_reorder_pics [ i] indicates a maximum allowed number of pictures that can precede any picture in said multi-layer video sequence in decoding order and follow that picture in output order when HighestTid is equal to i; outputting a picture, which is a first picture in output order of said pictures in said decoded picture buffer (125, 225) that are marked as needed for output, if said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output is greater than said value sps_max_num_reorder_pics [ HighestTid]; and marking said picture as not needed for output if said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output is greater than said value sps_max_num_reorder_pics [ HighestTid].