Last active
November 5, 2018 13:37
-
-
Save ryanmarin/083afed8e909167da24d119d662ab6bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activate (ctx) { | |
if ff_outlink_frame_wanted(out_v) && !ctx.vframe | |
ctx.vframe = consume(input_v) if null then ff_inlink_request_frame(input_v) | |
if ff_outlink_frame_wanted(out_a) && !ctx.aframe | |
ctx.aframe = consume(input_a) if null then ff_inlink_request_frame(input_a) | |
if (ctx.vframe) | |
ff_filter_frame(out_v) | |
ctx.vframe = NULL | |
return | |
if (ctx.aframe) /// will this ever get called? | |
ff_filter_frame(out_a) | |
ctx.aframe = NULL | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment