Fixed AVI header writing 4 bytes for 16bit values
Fixed AVI header writing 4 bytes for 16bit values

{U}INTX_C et al. only seem to guarantee that the size of the constant will be X bits or more. At least this is the behaviour I've seen with VS and Clang

I've made the minimal fix here, but it would be smart to review all remaining uses of these macros, particularly when it comes to I/O.

mmicko/bgfx,bkaradzic/bgfx,fluffyfreak/bgfx,Synxis/bgfx,attilaz/bgfx,Synxis/bgfx,fluffyfreak/bgfx,septag/bgfx,LWJGL-CI/bgfx,aonorin/bgfx,0-wiz-0/bgfx,mmicko/bgfx,emoon/bgfx,septag/bgfx,LSBOSS/bgfx,v3n/bgfx,andr3wmac/bgfx,jpcy/bgfx,mmicko/bgfx,jdryg/bgfx,kondrak/bgfx,Synxis/bgfx,attilaz/bgfx,bkaradzic/bgfx,elmindreda/bgfx,jdryg/bgfx,marco-we/bgfx,emoon/bgfx,mendsley/bgfx,attilaz/bgfx,septag/bgfx,LSBOSS/bgfx,LWJGL-CI/bgfx,jpcy/bgfx,aonorin/bgfx,MikePopoloski/bgfx,mendsley/bgfx,aonorin/bgfx,jdryg/bgfx,emoon/bgfx,kondrak/bgfx,v3n/bgfx,elmindreda/bgfx,marco-we/bgfx,0-wiz-0/bgfx,jpcy/bgfx,fluffyfreak/bgfx,andr3wmac/bgfx,MikePopoloski/bgfx,0-wiz-0/bgfx,jdryg/bgfx,bkaradzic/bgfx,MikePopoloski/bgfx,andr3wmac/bgfx,LSBOSS/bgfx,LWJGL-CI/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,marco-we/bgfx,kondrak/bgfx,v3n/bgfx,jpcy/bgfx,elmindreda/bgfx,bkaradzic/bgfx,fluffyfreak/bgfx