Image decoding method by restarting s buffer and reclassification of pn for continuity.

A decoding method for decoding an image stream (str) encoded, said method comprising: obtaining a number (PN) of image from the stream (str) encoded; determine whether the information of releasing all pictures is coded stream (str) encoded; and if the determination provides a positive result: a) extracting information from all pictures release stream (str) encoded; b) decoding the stream (str) encoded to obtain a decoded picture; c) storing the decoded picture in a memory (MEM) of reference images; d) releasing all pictures stored in the memory (MEM) of reference images prior to said extraction of information release all images based on the information extracted from elimination of all images; ee) initializing the number (PN) image obtained after decoding the stream (str) encoded by assigning a new number (PN) image "0" to the decoded image after it has been extracted information release all images to obtain continuous picture numbers starting from the picture number of the encoded image.