Chromium Code Reviews| Index: webrtc/modules/video_processing/spatial_resampler.cc |
| diff --git a/webrtc/modules/video_processing/spatial_resampler.cc b/webrtc/modules/video_processing/spatial_resampler.cc |
| index 74a570fb07822694c407d478ff39b98987d9ca7d..7c4aae20888d104c53c1989dac1061d72330635d 100644 |
| --- a/webrtc/modules/video_processing/spatial_resampler.cc |
| +++ b/webrtc/modules/video_processing/spatial_resampler.cc |
| @@ -58,10 +58,10 @@ int32_t VPMSimpleSpatialResampler::ResampleFrame(const VideoFrame& inFrame, |
| scaled_buffer->CropAndScaleFrom(inFrame.video_frame_buffer()); |
| - outFrame->set_video_frame_buffer(scaled_buffer); |
| - // Setting time parameters to the output frame. |
| - outFrame->set_timestamp(inFrame.timestamp()); |
| - outFrame->set_render_time_ms(inFrame.render_time_ms()); |
| + *outFrame = VideoFrame(scaled_buffer, |
| + inFrame.timestamp(), |
| + inFrame.render_time_ms(), |
| + inFrame.rotation()); |
|
nisse-webrtc
2016/06/15 07:49:20
On the other hand, at this place the old version d
|
| return VPM_OK; |
| } |