MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FFMS_WriteIndexToBuffer

Function FFMS_WriteIndexToBuffer

src/core/ffms.cpp:394–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394FFMS_API(int) FFMS_WriteIndexToBuffer(uint8_t **BufferPtr, size_t *Size, FFMS_Index *Index, FFMS_ErrorInfo *ErrorInfo) {
395 ClearErrorInfo(ErrorInfo);
396 uint8_t *buf;
397
398 try {
399 buf = Index->WriteIndexBuffer(Size);
400 } catch (FFMS_Exception &e) {
401 *Size = 0;
402 *BufferPtr = nullptr;
403 return e.CopyOut(ErrorInfo);
404 }
405
406 *BufferPtr = buf;
407
408 return FFMS_ERROR_SUCCESS;
409}
410
411FFMS_API(void) FFMS_FreeIndexBuffer(uint8_t **BufferPtr) {
412 av_freep(BufferPtr);

Callers

nothing calls this directly

Calls 3

ClearErrorInfoFunction · 0.85
WriteIndexBufferMethod · 0.80
CopyOutMethod · 0.80

Tested by

no test coverage detected