| 350 | } |
| 351 | |
| 352 | FFMS_API(FFMS_Index *) FFMS_ReadIndex(const char *IndexFile, FFMS_ErrorInfo *ErrorInfo) { |
| 353 | ClearErrorInfo(ErrorInfo); |
| 354 | try { |
| 355 | return new FFMS_Index(IndexFile); |
| 356 | } catch (FFMS_Exception &e) { |
| 357 | e.CopyOut(ErrorInfo); |
| 358 | return nullptr; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | FFMS_API(FFMS_Index *) FFMS_ReadIndexFromBuffer(const uint8_t *Buffer, size_t Size, FFMS_ErrorInfo *ErrorInfo) { |
| 363 | ClearErrorInfo(ErrorInfo); |
no test coverage detected