Closed lukasf closed 9 months ago
While you're at it: I noticed that in case when the subtitle stream is empty (length=0), it throws an exception.
I think it didn't do that before, could that be?
I just noticed it from the C# side and didn't follow any further.
We throw an exception if no subtitle track was added. So that's expected when you pass a blank empty file (or a valid media file which does not have subs).
We throw an exception if no subtitle track was added. So that's expected when you pass a blank empty file (or a valid media file which does not have subs).
Okay.
I think this is good to merge, right?
Yes.
This is to solve #367
I also added conversion from UTF16BE/LE to UTF8, if we detect that encoding (never ever seen that on a sub, but anyways).