diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-24 13:52:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-24 13:52:24 +0100 |
| commit | 7a25c08988111224f264ecfffa7df392d4c9af1a (patch) | |
| tree | 6a50872f1b03d4ef9d91121eb6e8334bc1c67970 /src/lib/decoder.cc | |
| parent | 6d1748f37097e6f61ee1c6fb66c4352b0834ec8c (diff) | |
Try to fix overrunning subtitles.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index da75decc8..045c1b818 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -463,7 +463,7 @@ Decoder::process_subtitle (shared_ptr<TimedSubtitle> s) { _timed_subtitle = s; - if (_opt->apply_crop) { + if (_timed_subtitle && _opt->apply_crop) { Position const p = _timed_subtitle->subtitle()->position (); _timed_subtitle->subtitle()->set_position (Position (p.x - _fs->crop().left, p.y - _fs->crop().top)); } |
