diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
| commit | 4e79cb88c22a7b2d52381f0a1a1ffdb5015fa617 (patch) | |
| tree | 8f199cd05396353a263e156448ca2ef1bf30eaa6 /src/lib/subtitle.cc | |
| parent | a7f27819cbb7db110587603c2d0717dd4c018c11 (diff) | |
Try again to sort out image alignment a bit.
Diffstat (limited to 'src/lib/subtitle.cc')
| -rw-r--r-- | src/lib/subtitle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/subtitle.cc b/src/lib/subtitle.cc index 282a2cde1..4b7f81947 100644 --- a/src/lib/subtitle.cc +++ b/src/lib/subtitle.cc @@ -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]; |
