A method performed by a decoder (100, 200, 400), said method comprises: determining, after a current picture 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; selecting a value sps_max_num_reorder_pics [ HighestTid], wherein HighestTid specifies said highest layer, and said value sps_max_num_reorder_pics [ HighestTid] is derived from a syntax element associated with said highest layer, 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; comparing said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output against said value sps_max_num_reorder_pics [ HighestTid]; 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_pcs [ HighestTid]. determining, after a current picture 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; selecting a value sps_max_num_reorder_pics [ HighestTid], wherein HighestTid specifies said highest layer, and said value sps_max_num_reorder_pics [ HighestTid] is derived from a syntax element associated with said highest layer, 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; comparing said number of pictures in said decoded picture buffer (125, 225) that are marked as needed for output against said value sps_max_num_reorder_pics [ HighestTid]; 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_pcs [ HighestTid].