Fix some unaligned images.
authorCarl Hetherington <cth@carlh.net>
Wed, 23 Jan 2013 19:04:32 +0000 (19:04 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 23 Jan 2013 19:04:32 +0000 (19:04 +0000)
src/lib/imagemagick_decoder.cc
src/lib/matcher.cc
src/lib/video_decoder.cc

index bab4f2f072f1b19c0dad60958936f1f8a0061db5..a623fd226eaaf0c6544c772862d530d047b11a5a 100644 (file)
@@ -98,7 +98,7 @@ ImageMagickDecoder::pass ()
 
        delete magick_image;
 
-       image = image->crop (_film->crop(), false);
+       image = image->crop (_film->crop(), true);
        
        emit_video (image, 0);
 
index 2b7a080fc91aea71f522570205cd5053246d7cce..182fb306c695d1008b4b8be8d50732af4cddda55 100644 (file)
@@ -81,7 +81,7 @@ Matcher::process_end ()
                
                _log->log (String::compose ("Emitting %1 frames of black video", black_video_frames));
 
-               shared_ptr<Image> black (new SimpleImage (_pixel_format.get(), _size.get(), false));
+               shared_ptr<Image> black (new SimpleImage (_pixel_format.get(), _size.get(), true));
                black->make_black ();
                for (int i = 0; i < black_video_frames; ++i) {
                        Video (black, i != 0, shared_ptr<Subtitle>());
index 3a803a86339a9fdf955bc59bdcb6c45cca8d05ca..0fa16bc325b8b6ee8a309098c54a066359d99e1a 100644 (file)
@@ -57,7 +57,7 @@ void
 VideoDecoder::repeat_last_video ()
 {
        if (!_last_image) {
-               _last_image.reset (new SimpleImage (pixel_format(), native_size(), false));
+               _last_image.reset (new SimpleImage (pixel_format(), native_size(), true));
                _last_image->make_black ();
        }