agsantos | f499e07 | 2020-11-26 16:30:57 -0500 | [diff] [blame] | 1 | if (!pluginFrame) |
2 | return; | ||||
3 | |||||
4 | if (firstRun) { | ||||
5 | // IMPLEMENT CODE TO CONFIGURE | ||||
6 | // VARIABLES UPON FIRST RUN | ||||
7 | firstRun = false; | ||||
8 | } | ||||
9 | |||||
10 | AVFrame* processedFrame = nullptr; | ||||
11 | |||||
12 | // IMPLEMENT PROCESS | ||||
13 | |||||
14 | if (processedFrame) { | ||||
15 | moveFrom(pluginFrame, processedFrame); | ||||
16 | av_frame_unref(processedFrame); | ||||
17 | av_frame_free(&processedFrame); | ||||
18 | } |