avformat/apng: fix setting frame delay when max_fps is set to no limit