| 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; |
no test coverage detected