diff options
author | Ron Economos <w6rz@comcast.net> | 2020-10-22 01:35:23 -0700 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-10-23 09:32:16 -0400 |
commit | 1a0d2d4c6d2d19baaeea496c1881619c75b7b65c (patch) | |
tree | e08592c54b847c32ec6c9f5677b52080cbeca2af /gr-video-sdl/lib/sink_s_impl.cc | |
parent | 159f4eb7d7b2858fce0f99a3765d8ad548b8c4a2 (diff) |
gr-video-sdl: Fix YUV formats.
Diffstat (limited to 'gr-video-sdl/lib/sink_s_impl.cc')
-rw-r--r-- | gr-video-sdl/lib/sink_s_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-video-sdl/lib/sink_s_impl.cc b/gr-video-sdl/lib/sink_s_impl.cc index 641f56bf8f..f1bf59eff4 100644 --- a/gr-video-sdl/lib/sink_s_impl.cc +++ b/gr-video-sdl/lib/sink_s_impl.cc @@ -201,7 +201,7 @@ int sink_s_impl::copy_plane_to_surface(int plane, unsigned char* dst_pixels_2 = (unsigned char*)d_image->pixels[second_dst_plane]; dst_pixels_2 = &dst_pixels_2[current_line * d_image->pitches[second_dst_plane]]; - int src_width = (0 == plane || 12 == plane || 1122 == plane) ? d_width : d_width / 2; + int src_width = d_width; int noutput_items_produced = 0; int max_height = (0 == plane) ? d_height - 1 : d_height / 2 - 1; |