From 19a6431ec247e4842236292cc5f8cfc8f87da11e Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 29 Oct 2014 01:32:44 +0100 Subject: 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. --- libavformat/assdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/assdec.c') diff --git a/libavformat/assdec.c b/libavformat/assdec.c index ccbf4c00cd..c62e76f0dd 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -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) -- cgit v1.2.3