You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavu/internal: add FF_FIELD_AT().
This commit is contained in:
@@ -99,6 +99,11 @@
|
||||
|
||||
#define FF_PTR_ADD(ptr, off) ((off) ? (ptr) + (off) : (ptr))
|
||||
|
||||
/**
|
||||
* Access a field in a structure by its offset.
|
||||
*/
|
||||
#define FF_FIELD_AT(type, off, obj) (*(type *)((char *)&(obj) + (off)))
|
||||
|
||||
#include "libm.h"
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user