diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-28 17:04:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-28 17:04:03 +0100 |
| commit | a8364241532c0c4b064c30d6151f1a248a27e467 (patch) | |
| tree | 1abae29c6c4320b5334f5ac8ff0d3cc4b6b7dce7 /src/lib/ffmpeg_decoder.cc | |
| parent | a1f9c20f7f1cb7811504bf092360dee92de93b0a (diff) | |
Support more detailed horizontal positioning coming from libsub.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index a09eab68e..af309cdbe 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -647,7 +647,12 @@ FFmpegDecoder::decode_ass_subtitle (string ass, ContentTime from) } sub::RawSubtitle base; - list<sub::RawSubtitle> raw = sub::SSAReader::parse_line (base, bits[9]); + list<sub::RawSubtitle> raw = sub::SSAReader::parse_line ( + base, + bits[9], + _ffmpeg_content->video->size().width, + _ffmpeg_content->video->size().height + ); BOOST_FOREACH (sub::Subtitle const & i, sub::collect<list<sub::Subtitle> > (raw)) { subtitle->emit_text_start (from, i); |
