[FFmpeg-devel] [PATCH] lavc: make invalid UTF-8 in subtitle output a non-fatal error

Nicolas George nicolas.george at normalesup.org
Fri Jun 28 10:42:34 CEST 2013


Le decadi 10 messidor, an CCXXI, wm4 a écrit :
> So here's a patch that allows the application to handle this on its
> own. This should neatly fit with the no-policy idea, and it doesn't
> change the default behavior either.

Not changing the default behaviour is better, but it is still a step in the
wrong direction.

> If you don't accept his patch, please tell me how to disable the UTF-8
> check otherwise.

Set the sub_charenc options to a reasonable value. I can not help you more
unless you explain exactly how you get the subtitles and what you intend to
do with them after decoding, but I am pretty sure that the current API is
useable (while incomplete, missing auto-detection) and you are misusing it.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130628/6c70d3d8/attachment.asc>


More information about the ffmpeg-devel mailing list