Skip to content

Instantly share code, notes, and snippets.

@ryanmarin
Last active November 5, 2018 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanmarin/083afed8e909167da24d119d662ab6bf to your computer and use it in GitHub Desktop.
Save ryanmarin/083afed8e909167da24d119d662ab6bf to your computer and use it in GitHub Desktop.
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