Skip to content
Snippets Groups Projects
Commit 23f4fbdd authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

vlc_boxes: add bo_size

parent cbbc8d8d
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment