| 216 | } |
| 217 | |
| 218 | void av_bprint_get_buffer(AVBPrint *buf, unsigned size, |
| 219 | unsigned char **mem, unsigned *actual_size) |
| 220 | { |
| 221 | if (size > av_bprint_room(buf)) |
| 222 | av_bprint_alloc(buf, size); |
| 223 | *actual_size = av_bprint_room(buf); |
| 224 | *mem = *actual_size ? buf->str + buf->len : NULL; |
| 225 | } |
| 226 | |
| 227 | void av_bprint_clear(AVBPrint *buf) |
| 228 | { |
no test coverage detected