mirror of https://code.videolan.org/videolan/vlc
vlc_boxes: add bo_size
This commit is contained in:
parent
cbbc8d8dd1
commit
23f4fbdd86
|
@ -160,6 +160,11 @@ static inline bool bo_add_mem(bo_t *p_bo, size_t i_size, const void *p_mem)
|
|||
return true;
|
||||
}
|
||||
|
||||
static inline size_t bo_size(const bo_t *p_bo)
|
||||
{
|
||||
return (p_bo->b) ? p_bo->b->i_buffer : 0;
|
||||
}
|
||||
|
||||
#define bo_add_fourcc(p_bo, fcc) bo_add_mem(p_bo, 4, fcc)
|
||||
|
||||
#endif // VLC_BOXES_H
|
||||
|
|
Loading…
Reference in New Issue