Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casts in enum expressions make the converter fail an assertion #4

Open
mstorsjo opened this issue Jan 25, 2013 · 4 comments
Open

Casts in enum expressions make the converter fail an assertion #4

mstorsjo opened this issue Jan 25, 2013 · 4 comments

Comments

@mstorsjo
Copy link
Contributor

$subject, a test case (both a simple one and the full-blown one that triggered it in the user case) exists in mstorsjo@enum-cast.

@zachjacobs
Copy link

Any progress on resolving this issue? I'm having problems with this as well and would appreciate a response. Thanks!

@lieff
Copy link
Contributor

lieff commented Feb 17, 2016

I face this issue while compiling ffmpeg qsv module:

qsv.c
Assertion failed: cache2.n[0] == 2, file convert.c, line 546

I can workaround this by replacing MFX_MAKEFOURCC define with actual values:

#define MFX_MAKEFOURCC(A,B,C,D)    ((((int)A))+(((int)B)<<8)+(((int)C)<<16)+(((int)D)<<24))

    MFX_FOURCC_YV12         = MFX_MAKEFOURCC('Y','V','1','2'),

@yihhann
Copy link

yihhann commented May 15, 2017

Thank @lieff show me the way to modify mfxcommon.h:
#define MFX_MAKEFOURCC(A,B,C,D) (((D*256+C)*256+B)*256+A)
That passed the c99-to-c89 converter!

@lieff
Copy link
Contributor

lieff commented May 16, 2017

Glad to hear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants