overfitted on previous frames, or a combination thereof, similarly to what was done in the first embodiment. As a further embodiment, the overfitted decoder can be used for bitrate saving. The PSNR gain brought up by a better decoder can be exploited for achieving a better compression gain. This means that original PSNR can be achieved with a lower bitrate. This can be implemented for example by having multiple auto-encoders, one for each encoding dimension (e.g., 64 bits and 2 16 bits). If overfitting the decoders allows to obtain the same or better PSNR with a lower-dimension auto-encoder, and the saved bits are lower than the overhead bits needed by the block residual or by the weights residual, then there is compression gain. Fig. 6 is a flowchart illustrating a method according to an embodiment. A method comprises receiving 601 input data divided into a plurality of blocks; overfitting 602 a first neural encoder network for a first block of the data based on a baseline encoder network; encoding 603 the first block by the first overfitted neural encoder network; overfitting 604 a second neural encoder network for at least one subsequent block of the data based on a combination of neural networks used for previous blocks and/or the baseline encoder network; and encoding 605 the at least one subsequent block by the second overfitted neural encoder network. An apparatus according to an embodiment comprises means for receiving input data divided into a plurality of blocks; means for overfitting a first neural encoder network for a first block of the data based on a baseline encoder network; means for encoding the first block by the first overfitted neural encoder network; means for overfitting a second neural encoder network for at least one subsequent block of the data based on a combination of neural encoder networks used for previous blocks and/or the baseline encoder network; and means for encoding the at least one subsequent block by the second overfitted neural encoder network. The means comprises at least one processor, and a memory including a computer program code, wherein the processor may further comprise processor circuitry. The memory and the computer program code are configured to, with the at least one processor, cause the apparatus to perform the method of Fig, 6 according to various embodiments. Fig. 7 is a flowchart illustrating a method according to another embodiment. A method for neural decoder network comprises receiving 701 a block residual