summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-17 00:55:53 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-17 00:55:53 +0000
commita6b7ff4fc0ad2d05a7b9a9c56c0e0ec60ec44a4c (patch)
tree6a79eb71f337ade25e90cdf40b9b3f93bb2724a8 /src/lib
parent2e504b33eb9f38cac629ad31b7c107fb0cf5efda (diff)
Merge master.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc2
-rw-r--r--src/lib/video_content.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index f83e4ed26..f07bf4980 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -273,7 +273,7 @@ Player::emit_video (weak_ptr<Piece> weak_piece, shared_ptr<DecodedVideo> video)
FrameRateChange frc (content->video_frame_rate(), _film->video_frame_rate());
- dcp::Size image_size = content->scale().size (content, _video_container_size);
+ dcp::Size image_size = content->scale().size (content, _video_container_size, _film->frame_size ());
if (_approximate_size) {
image_size.width &= ~3;
image_size.height &= ~3;
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc
index c3aea2b0f..b6a2d0318 100644
--- a/src/lib/video_content.cc
+++ b/src/lib/video_content.cc
@@ -452,7 +452,7 @@ VideoContentScale::size (shared_ptr<const VideoContent> c, dcp::Size display_con
return fit_ratio_within (_ratio->ratio (), display_container);
}
- libdcp::Size const ac = c->video_size_after_crop ();
+ dcp::Size const ac = c->video_size_after_crop ();
/* Force scale if the film_container is smaller than the content's image */
if (_scale || film_container.width < ac.width || film_container.height < ac.height) {
@@ -462,7 +462,7 @@ VideoContentScale::size (shared_ptr<const VideoContent> c, dcp::Size display_con
/* Scale the image so that it will be in the right place in film_container, even if display_container is a
different size.
*/
- return libdcp::Size (
+ return dcp::Size (
c->video_size().width * float(display_container.width) / film_container.width,
c->video_size().height * float(display_container.height) / film_container.height
);