avf: move ff_write_chained to mux.c