diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-06-07 21:27:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-06-07 21:27:40 +0100 |
| commit | 2d9f569c146b391159f362c854457ce1facac1e8 (patch) | |
| tree | a89e9932ed139854210341b13bdd9903cae07981 /src/lib/player_video.cc | |
| parent | 3458d0ec34f08a8eeef9b158f26a476a18548353 (diff) | |
Fix crash when alpha-blending subtitles onto YUV420 images.
Diffstat (limited to 'src/lib/player_video.cc')
| -rw-r--r-- | src/lib/player_video.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player_video.cc b/src/lib/player_video.cc index 2e53a6aa6..6f0977e62 100644 --- a/src/lib/player_video.cc +++ b/src/lib/player_video.cc @@ -135,7 +135,7 @@ PlayerVideo::image (dcp::NoteHandler note, function<AVPixelFormat (AVPixelFormat ); if (_subtitle) { - out->alpha_blend (_subtitle->image, _subtitle->position); + out->alpha_blend (Image::ensure_aligned (_subtitle->image), _subtitle->position); } if (_fade) { |
