Skip to content

Commit

Permalink
video-mixer: make dstVideoRect equal dst_surf size by default
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rinat committed Jun 18, 2016
1 parent 9dca3ff commit fddcb50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api-video-mixer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,11 @@ RenderImpl(VdpVideoMixer mixer_id, VdpOutputSurface background_surface,
if (destination_rect)
dstRect = *destination_rect;

VdpRect dstVideoRect = srcVideoRect;
// TODO: dstVideoRect once was equal srcVideoRect by default. But there are
// possible subtleness in API documentation, which makes some people
// interpret it in another way. More importantly, origial VDPAU driver
// also does the other way. I hope this will be clarified one day.
VdpRect dstVideoRect = {0, 0, dst_surf->width, dst_surf->height};
if (destination_video_rect)
dstVideoRect = *destination_video_rect;

Expand Down

0 comments on commit fddcb50

Please sign in to comment.