Src_width set incorrect in video_sdl_sink

I am playing with gr-video-sdl for a while.
One channel (Y) is fine. But if I do three channels YUV, the color is
messy.
I checked the source code of video_sdl_sink_uc.cc and found out at line
171:
int src_width=(0==plane || 12==plane || 1122==plane)?d_width:d_width/2;

This seems wrong, because base class is gr_sync_block, which means all
inputs must be taken at the same rate. Then src_width for all planes 0,
1 and 2 should be the same.

I did change the above line to:

int src_width=d_width;

and it works well (only tested for YUV)

Am I doing it right?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs