lavfi: create buffer reference in filters which need to access the ref later