Thread: Avisynth+
View Single Post
Old 9th January 2017, 21:26   #2814  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
Quote:
Originally Posted by pinterf View Post
Isn't is normal? It is encoded the same way as all the others.
012P = P210
008Y = Y800
[16][10]3Y = Y3[10][16]
etc...
This is strange but these literals are translated differently.

'610P' -> 'P','0','1','6'
'\012\0123Y' -> 10,10,'3','Y'

How about this:

Code:
#define MAKEFOURCC(byte1, byte2, byte3, byte4) (((uint8)byte1) + (((uint8)byte2) << 8) + (((uint8)byte3) << 16) + (((uint8)byte4) << 24))

MAKEFOURCC('Y', '3', 10, 16)
__________________
VirtualDub2
shekh is offline