MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / ~VideoStream

Method ~VideoStream

src/Abyss/Streams/VideoStream.cpp:234–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234VideoStream::~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
250void VideoStream::update(const uint32_t ticks) {
251 _totalTicks += ticks;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected