summaryrefslogtreecommitdiffstats
path: root/libavformat/realtextdec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-29 01:32:44 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-10-29 01:32:44 +0100
commit19a6431ec247e4842236292cc5f8cfc8f87da11e (patch)
tree6b2dbcbc3533fec685d825e723b9d237dbfa79b0 /libavformat/realtextdec.c
parent26122145559f55b6061281bd96a66cebdc5ac33f (diff)
downloadffmpeg-streaming-19a6431ec247e4842236292cc5f8cfc8f87da11e.zip
ffmpeg-streaming-19a6431ec247e4842236292cc5f8cfc8f87da11e.tar.gz
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.
Diffstat (limited to 'libavformat/realtextdec.c')
-rw-r--r--libavformat/realtextdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/realtextdec.c b/libavformat/realtextdec.c
index 19af108..fff85d6 100644
--- a/libavformat/realtextdec.c
+++ b/libavformat/realtextdec.c
@@ -65,7 +65,7 @@ static int realtext_read_header(AVFormatContext *s)
char c = 0;
int res = 0, duration = read_ts("60"); // default duration is 60 seconds
FFTextReader tr;
- ff_text_init_avio(&tr, s->pb);
+ ff_text_init_avio(s, &tr, s->pb);
if (!st)
return AVERROR(ENOMEM);
OpenPOWER on IntegriCloud