Mercurial > libavcodec.hg
comparison utils.c @ 3719:a565d89ff032 libavcodec
Make OFFSET() reuse offsetof
| author | takis |
|---|---|
| date | Thu, 14 Sep 2006 13:51:54 +0000 |
| parents | 6c290e7de637 |
| children | c52a1096385e |
comparison
equal
deleted
inserted
replaced
| 3718:73626972ccbb | 3719:a565d89ff032 |
|---|---|
| 436 return avc->codec->name; | 436 return avc->codec->name; |
| 437 else | 437 else |
| 438 return "NULL"; | 438 return "NULL"; |
| 439 } | 439 } |
| 440 | 440 |
| 441 #define OFFSET(x) (int)&((AVCodecContext*)0)->x | 441 #define OFFSET(x) offsetof(AVCodecContext,x) |
| 442 #define DEFAULT 0 //should be NAN but it doesnt work as its not a constant in glibc as required by ANSI/ISO C | 442 #define DEFAULT 0 //should be NAN but it doesnt work as its not a constant in glibc as required by ANSI/ISO C |
| 443 //these names are too long to be readable | 443 //these names are too long to be readable |
| 444 #define V AV_OPT_FLAG_VIDEO_PARAM | 444 #define V AV_OPT_FLAG_VIDEO_PARAM |
| 445 #define A AV_OPT_FLAG_AUDIO_PARAM | 445 #define A AV_OPT_FLAG_AUDIO_PARAM |
| 446 #define S AV_OPT_FLAG_SUBTITLE_PARAM | 446 #define S AV_OPT_FLAG_SUBTITLE_PARAM |
