MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / Release

Method Release

libavdevice/decklink_enc.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132 virtual ULONG STDMETHODCALLTYPE AddRef(void) { return ++_refs; }
133 virtual ULONG STDMETHODCALLTYPE Release(void)
134 {
135 int ret = --_refs;
136 if (!ret) {
137 av_frame_free(&_avframe);
138 av_packet_free(&_avpacket);
139 if (_ancillary)
140 _ancillary->Release();
141 delete this;
142 }
143 return ret;
144 }
145
146 struct decklink_ctx *_ctx;
147 AVFrame *_avframe;

Callers 3

SetAncillaryDataMethod · 0.45
decklink_construct_vancFunction · 0.45

Calls 2

av_frame_freeFunction · 0.85
av_packet_freeFunction · 0.85

Tested by

no test coverage detected