Revert "yuv2rgb fix. Code was doing a left shift on negative numbers which would cause the sign bit to get shifted out"

This reverts commit d42ee81214fbb0e728560c97016a76f3cfbd884a.
clang fix for narrowing a non constant expression
cleanup fix for memset/memcpy stuff. Fix a copy paste fail