| 232 | } |
| 233 | |
| 234 | VideoStream::~VideoStream() { |
| 235 | // Engine::Get()->GetSystemIO().SetVideo(nullptr); |
| 236 | |
| 237 | av_free(_avioContext->buffer); |
| 238 | avio_context_free(&_avioContext); |
| 239 | avcodec_free_context(&_videoCodecContext); |
| 240 | sws_freeContext(_swsContext); |
| 241 | if (_audioStreamIdx >= 0) { |
| 242 | avcodec_free_context(&_audioCodecContext); |
| 243 | swr_free(&_resampleContext); |
| 244 | } |
| 245 | av_frame_free(&_avFrame); |
| 246 | avformat_close_input(&_avFormatContext); |
| 247 | avformat_free_context(_avFormatContext); |
| 248 | } |
| 249 | |
| 250 | void VideoStream::update(const uint32_t ticks) { |
| 251 | _totalTicks += ticks; |
nothing calls this directly
no outgoing calls
no test coverage detected