Try again to sort out image alignment a bit.
[dcpomatic.git] / src / lib / subtitle.cc
index 282a2cde1a68b9e494af6fcc005d3f88b8f7b4d2..4b7f81947f66480401b8cde3b6387bf31a117b80 100644 (file)
@@ -54,7 +54,7 @@ TimedSubtitle::TimedSubtitle (AVSubtitle const & sub, double c)
                throw DecodeError ("non-bitmap subtitles not yet supported");
        }
        
-       shared_ptr<Image> image (new AlignedImage (PIX_FMT_RGBA, Size (rect->w, rect->h)));
+       shared_ptr<Image> image (new SimpleImage (PIX_FMT_RGBA, Size (rect->w, rect->h), true));
 
        /* Start of the first line in the subtitle */
        uint8_t* sub_p = rect->pict.data[0];