diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-11 09:19:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-11 09:19:22 +0100 |
| commit | 26f2e20607096cd285110c8ced9e32beb837b55e (patch) | |
| tree | 71ba60bf699b9a73ed44966492c30d579718dac0 /src/lib/render_subtitles.cc | |
| parent | 8e79595c7867a634d89fe9da37dc142d63182a02 (diff) | |
Keep information about the video range (full/JPEG or video/MPEG) in
Image and use it when setting up swscale.
Diffstat (limited to 'src/lib/render_subtitles.cc')
| -rw-r--r-- | src/lib/render_subtitles.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_subtitles.cc b/src/lib/render_subtitles.cc index 35fcd8b93..61b09ecc1 100644 --- a/src/lib/render_subtitles.cc +++ b/src/lib/render_subtitles.cc @@ -130,7 +130,7 @@ render_line (list<SubtitleString> subtitles, list<shared_ptr<Font> > fonts, dcp: height += target.height / 11; /* FFmpeg BGRA means first byte blue, second byte green, third byte red, fourth byte alpha */ - shared_ptr<Image> image (new Image (AV_PIX_FMT_BGRA, dcp::Size (target.width, height), false)); + shared_ptr<Image> image (new Image (AV_PIX_FMT_BGRA, true, dcp::Size (target.width, height), false)); image->make_black (); #ifdef DCPOMATIC_HAVE_FORMAT_STRIDE_FOR_WIDTH |
