From 7a25c08988111224f264ecfffa7df392d4c9af1a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Oct 2012 13:52:24 +0100 Subject: Try to fix overrunning subtitles. --- src/lib/decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/decoder.cc') 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 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)); } -- cgit v1.2.3