avfilter/filtfmts: Support dynamically allocated in/outputs