Fixes playback skipping on some videos in javafx viewer