summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-11 09:19:22 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-11 09:19:22 +0100
commit26f2e20607096cd285110c8ced9e32beb837b55e (patch)
tree71ba60bf699b9a73ed44966492c30d579718dac0 /src/lib/ffmpeg_encoder.cc
parent8e79595c7867a634d89fe9da37dc142d63182a02 (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/ffmpeg_encoder.cc')
-rw-r--r--src/lib/ffmpeg_encoder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc
index e55622abf..ea6bc7200 100644
--- a/src/lib/ffmpeg_encoder.cc
+++ b/src/lib/ffmpeg_encoder.cc
@@ -270,10 +270,12 @@ FFmpegEncoder::go ()
void
FFmpegEncoder::video (shared_ptr<PlayerVideo> video, DCPTime time)
{
+ /* XXX: what should full_range be here? */
shared_ptr<Image> image = video->image (
bind (&Log::dcp_log, _film->log().get(), _1, _2),
bind (&force_pixel_format, _1, _pixel_format),
true,
+ true,
false
);