Commit 23f4fbdd authored by François Cartegnie's avatar François Cartegnie 🤞

vlc_boxes: add bo_size

parent cbbc8d8d
...@@ -160,6 +160,11 @@ static inline bool bo_add_mem(bo_t *p_bo, size_t i_size, const void *p_mem) ...@@ -160,6 +160,11 @@ static inline bool bo_add_mem(bo_t *p_bo, size_t i_size, const void *p_mem)
return true; 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) #define bo_add_fourcc(p_bo, fcc) bo_add_mem(p_bo, 4, fcc)
#endif // VLC_BOXES_H #endif // VLC_BOXES_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment