Makes sure the progress does not go backwards with some codecs