style cleanup: py api
This commit is contained in:
@@ -88,16 +88,18 @@ static PyObject *make_ffmpeg_info(void)
|
||||
PyStructSequence_SET_ITEM(ffmpeg_info, pos++, obj)
|
||||
|
||||
#ifdef WITH_FFMPEG
|
||||
#define FFMPEG_LIB_VERSION(lib) \
|
||||
# define FFMPEG_LIB_VERSION(lib) { \
|
||||
curversion = lib ## _version(); \
|
||||
SetObjItem(Py_BuildValue("(iii)", \
|
||||
curversion >> 16, (curversion >> 8) % 256, curversion % 256)); \
|
||||
curversion >> 16, (curversion >> 8) % 256, curversion % 256)); \
|
||||
SetObjItem(PyUnicode_FromFormat("%2d, %2d, %2d", \
|
||||
curversion >> 16, (curversion >> 8) % 256, curversion % 256));
|
||||
curversion >> 16, (curversion >> 8) % 256, curversion % 256)); \
|
||||
} (void)0
|
||||
#else
|
||||
#define FFMPEG_LIB_VERSION(lib) \
|
||||
# define FFMPEG_LIB_VERSION(lib) { \
|
||||
SetStrItem("Unknown"); \
|
||||
SetStrItem("Unknown");
|
||||
SetStrItem("Unknown"); \
|
||||
} (void)0
|
||||
#endif
|
||||
|
||||
#ifdef WITH_FFMPEG
|
||||
|
||||
Reference in New Issue
Block a user