Print a warning if a subtitle demuxer changes utf16 to utf8.
This does not fix anything but gives users a chance to know that they must not pass -sub_charenc UTF-16 to ffmpeg. Fixes ticket #4059.
This commit is contained in:
@@ -112,7 +112,7 @@ static int ass_read_header(AVFormatContext *s)
|
||||
int res = 0;
|
||||
AVStream *st;
|
||||
FFTextReader tr;
|
||||
ff_text_init_avio(&tr, s->pb);
|
||||
ff_text_init_avio(s, &tr, s->pb);
|
||||
|
||||
st = avformat_new_stream(s, NULL);
|
||||
if (!st)
|
||||
|
||||
Reference in New Issue
Block a user