| 27 | } |
| 28 | |
| 29 | int dataSourceIO::read_callback(void *arg, uint8_t *buffer, int size) |
| 30 | { |
| 31 | auto *pHandle = static_cast<dataSourceIO *>(arg); |
| 32 | // AF_LOGE("read_callback", "%s %d \n", __func__, size); |
| 33 | int ret = pHandle->mPDataSource->Read(buffer, size); |
| 34 | return ret ? ret : AVERROR_EOF; |
| 35 | } |
| 36 | |
| 37 | int64_t dataSourceIO::seek_callback(void *arg, int64_t offset, int whence) |
| 38 | { |