lavfi: rewrite nullsrc using the code in vsrc_testsrc.c