[FFmpeg-devel] [PATCH v2 1/6] avformat/assdec: UTF-16 support
Clément Bœsch
u at pkh.me
Fri Sep 5 23:21:55 CEST 2014
On Thu, Sep 04, 2014 at 10:40:22PM +0200, wm4 wrote:
> Use the UTF-16 BOM to detect UTF-16 encoding. Convert the file contents
> to UTF-8 on the fly using FFTextReader, which acts as converting wrapper
> around AVIOContext. It also can work on a static buffer, needed for
> format probing. The FFTextReader wrapper now also takes care of skipping
> the UTF-8 BOM.
> ---
> Now uses an enum for UTF types.
> ---
> libavformat/assdec.c | 19 +++++++++------
> libavformat/subtitles.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
> libavformat/subtitles.h | 57 ++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 132 insertions(+), 7 deletions(-)
>
[...]
> + * UTF-8. On invalid UTF-18, 0 is returned.
> + *
Fixed UTF-18 typo, mentioned the Ticket #3496 in the commit message, and applied.
Thanks
Note: at least one UTF-16 FATE test would be welcome.
[...]
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140905/1ac5be03/attachment.asc>
More information about the ffmpeg-devel
mailing list