[FFmpeg-trac] #10583(avformat:new): lavf fails to probe ass file with utf16le encoding
FFmpeg
trac at avcodec.org
Sun Sep 24 00:20:28 EEST 2023
#10583: lavf fails to probe ass file with utf16le encoding
------------------------------------+------------------------------------
Reporter: llyyr | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: ass | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by mkver):
Your file contains two UTF-16 LE BOMs at the beginning; the subtitles.c
code strips the first one away and when streamcopying said file, the
resulting file gets an UTF-8 BOM from the second input BOM (otherwise
there would be no BOM as usual). The only bug I encountered is in
ff_text_peek_r8(): It's undoing of the read is incorrect in case there the
text reader's buffer still contains other characters (which are currently
implicitly discarded). But this is irrelevant for all current users of
ff_text_peek_r8().
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10583#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list