Fix crash when subtitle data grew at a rate > 2x

- The buffer was doubled in size if it didn't have enough space
  but it didn't check if double was enough.