SAPikachu/ffms2_hacks — comment on commit c71b8621e5f615332363ed1439d12886df149ce0
File: src/avisynth/avssources.cpp line 311
By kblomster:

Or if you really love your ternary operator:
*DstP++ = (uint8_t)((i == 1) ? (*SrcP++ >> 2) : (*SrcP++ << 6));